input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testTweeVaderOverLedenInNLPeriodeGeboorte ( ) { java . util . List < nl . bzk . brp . model . objecttype . operationeel . BetrokkenheidModel > echtgenoten = java . util . Arrays . asList ( maakBetrokkenheden ( 20110701 , 20120101 , ( ( short ) ( 1 ) ) ) , maakBetrokkenheden ( 20120201 , 20120504 , ( ( short ) ( 1 ) ) )...
org . junit . Assert . assertEquals ( 2 , kandidaten . size ( ) )
putListeners ( ) { final java . util . concurrent . atomic . AtomicInteger counter = new java . util . concurrent . atomic . AtomicInteger ( ) ; map . addListener ( new LRUMap . ModificationListener < java . lang . String , java . lang . Integer > ( ) { @ java . lang . Override public void onPut ( java . lang . String ...
org . junit . Assert . assertThat ( counter . get ( ) , org . hamcrest . CoreMatchers . equalTo ( 2 ) )
testStatelessKieSession ( ) { org . kie . api . runtime . StatelessKieSession ksession = ( ( org . kie . api . runtime . StatelessKieSession ) ( org . kie . spring . tests . KieSpringComponentScanTest . context . getBean ( "ksession1" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( ksession )
shouldHashSha1 ( ) { java . lang . String [ ] correctHashes = new java . lang . String [ ] { "da39a3ee5e6b4b0d3255bfef95601890afd80709" , "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8" , "285d0c707f9644b75e1a87a62f25d0efb56800f0" , "a42ef8e61e890af80461ca5dcded25cbfcf407a4" } ; java . util . List < java . lang . String > r...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . contains ( correctHashes ) )
equalsOtherNullReturnsFalse ( ) { com . rackspacecloud . blueflood . types . BluefloodCounterRollup rollup = new com . rackspacecloud . blueflood . types . BluefloodCounterRollup ( ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( obj instanceof com . rackspacecloud . blueflood . rollup . Granula...
org . junit . Assert . assertFalse ( rollup . equals ( null ) )
testFlatten ( ) { org . teiid . translator . document . Document doc = new org . teiid . translator . document . Document ( ) ; doc . addProperty ( "B" 4 , "AA" ) ; doc . addProperty ( "B" , "B" 2 ) ; org . teiid . translator . document . Document c1 = new org . teiid . translator . document . Document ( "c1" , false ,...
org . junit . Assert . assertArrayEquals ( expected . toArray ( ) , result . toArray ( ) )
testSetUnread ( ) { contact . setUnread ( 1 ) ; "<AssertPlaceHolder>" ; } getUnread ( ) { return unread ; }
org . junit . Assert . assertEquals ( 1 , contact . getUnread ( ) )
testOracleDatabase ( ) { try { java . lang . String expectedSQL = ( org . pentaho . di . core . database . SelectCountIT . NonHiveSelect ) + ( org . pentaho . di . core . database . SelectCountIT . TableName ) ; org . pentaho . di . core . database . DatabaseMeta databaseMeta = new org . pentaho . di . core . database ...
org . junit . Assert . assertTrue ( sql . equalsIgnoreCase ( expectedSQL ) )
redirectToHttp ( ) { final java . lang . String redirectUrl = "/mockResource?id=1" ; when ( request . getHeader ( "x-forwarded-proto" ) ) . thenReturn ( null ) ; final java . lang . String finalRedirectUrl = strategy . buildRedirectUrl ( request , redirectUrl ) ; "<AssertPlaceHolder>" ; } buildRedirectUrl ( javax . ser...
org . junit . Assert . assertEquals ( redirectUrl , finalRedirectUrl )
should_return_this ( ) { org . fest . assertions . api . FileAssert returned = assertions . hasContentEqualTo ( actual ) ; "<AssertPlaceHolder>" ; } hasContentEqualTo ( java . io . File ) { return hasContentEqualTo ( expected , defaultCharset ( ) ) ; }
org . junit . Assert . assertSame ( assertions , returned )
testGetCount ( ) { "<AssertPlaceHolder>" ; } getCount ( ) { return asInt ( "count" ) ; }
org . junit . Assert . assertEquals ( 1 , event . getCount ( ) )
testDeserializeClassCastException ( ) { final java . lang . String value = "Hello" ; final byte [ ] serialized = org . apache . commons . lang3 . SerializationUtils . serialize ( value ) ; "<AssertPlaceHolder>" ; @ org . apache . commons . lang3 . SuppressWarnings ( "unused" ) final java . lang . Integer i = org . apac...
org . junit . Assert . assertEquals ( value , org . apache . commons . lang3 . SerializationUtils . deserialize ( serialized ) )
testOverflow ( ) { if ( name . pachler . nio . file . ext . Bootstrapper . isForcePollingEnabled ( ) ) return ; java . lang . String osname = java . lang . System . getProperty ( "os.name" ) ; if ( ( osname . contains ( "Mac<sp>OS<sp>X" ) ) || ( osname . contains ( "FreeBSD" ) ) ) return ; name . pachler . nio . file ....
org . junit . Assert . assertTrue ( overflowDetected )
getNER ( ) { final org . aksw . fox . tools . ner . en . BalieEN balie = new org . aksw . fox . tools . ner . en . BalieEN ( ) ; final java . util . List < org . aksw . fox . data . Entity > e = balie . retrieve ( DataTestFactory . NER_EN_EXAMPLE_1 ) ; "<AssertPlaceHolder>" ; } retrieve ( java . lang . String ) { org ....
org . junit . Assert . assertTrue ( ( ( e . size ( ) ) > 0 ) )
testDataAfterPackFooterSingleRead ( ) { org . eclipse . jgit . revwalk . RevBlob a ; try ( org . eclipse . jgit . junit . TestRepository d = new org . eclipse . jgit . junit . TestRepository < org . eclipse . jgit . lib . Repository > ( db ) ) { a = d . blob ( "a" ) ; } org . eclipse . jgit . util . TemporaryBuffer . H...
org . junit . Assert . assertEquals ( 126 , in . read ( ) )
testVectorEncoding_2 ( ) { lombok . val scalar = org . nd4j . linalg . factory . Nd4j . trueVector ( new double [ ] { 1 , 2 , 3 , 4 , 5 } ) ; com . google . flatbuffers . FlatBufferBuilder bufferBuilder = new com . google . flatbuffers . FlatBufferBuilder ( 0 ) ; lombok . val fb = scalar . toFlatArray ( bufferBuilder )...
org . junit . Assert . assertEquals ( scalar , restored )
testTypeInsteadOfField ( ) { net . openhft . chronicle . wire . Wire wire = net . openhft . chronicle . wire . TextWire . from ( "!!null<sp>\"\"" ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; wire . read ( sb ) . object ( java . lang . Object . class ) ; "<AssertPlaceHolder>" ; } length ( )...
org . junit . Assert . assertEquals ( 0 , sb . length ( ) )
testFindsNoResourceServices ( ) { java . util . Set < java . lang . Object > classes = application . getSingletons ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return services . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , classes . size ( ) )
testArchiveWithSubdir ( ) { writeTrashFile ( "a" , "a<sp>file<sp>with<sp>content!" ) ; writeTrashFile ( "b.c" , "before<sp>subdir<sp>in<sp>git<sp>sort<sp>order" ) ; writeTrashFile ( "a" 1 , "a" 2 ) ; writeTrashFile ( "c" , "a" 4 ) ; git . add ( ) . addFilepattern ( "a" ) . call ( ) ; git . add ( ) . addFilepattern ( "b...
org . junit . Assert . assertArrayEquals ( expect , actual )
calculateStrongFingerprintWithAllBuildFilesPresent ( ) { fs . mkdirs ( fs . getPath ( "foo/bar" ) ) ; fs . createNewFile ( fs . getPath ( "foo/bar/FooBar.bzl" ) ) ; fs . createNewFile ( fs . getPath ( "foo/bar/BUCK" ) ) ; fs . createNewFile ( fs . getPath ( "foo/bar/BarFoo.bzl" ) ) ; com . google . common . collect . I...
org . junit . Assert . assertEquals ( expectedHash , strongFingerprintHash )
testBuildPartitionKeyWithEmptyList ( ) { java . util . List < java . lang . String > pKeys = new java . util . ArrayList ( ) ; pKeys . add ( "buzz" 0 ) ; pKeys . add ( "buzz" 3 ) ; com . zendesk . maxwell . row . RowMap rowMap = new com . zendesk . maxwell . row . RowMap ( "buzz" 5 , "MyDatabase" , "MyTable" , com . ze...
org . junit . Assert . assertEquals ( "buzz" 2 , partitionKey )
invalidPollingInterval ( ) { long poll = executor . getPollingInterval ( ) ; executor . setPollingInterval ( ( - 1 ) ) ; "<AssertPlaceHolder>" ; } getPollingInterval ( ) { return pollingInterval ; }
org . junit . Assert . assertEquals ( poll , executor . getPollingInterval ( ) )
testSortByExpression ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; final org . apache . calcite . rel . RelNode root = builder . scan ( "EMP" ) . sort ( builder . nullsL...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
testByteBufferToStream ( ) { byte [ ] content = "content" . getBytes ( StringUtils . UTF8 ) ; java . nio . ByteBuffer bb = java . nio . ByteBuffer . wrap ( content ) ; java . io . InputStream is = com . amazonaws . util . BinaryUtils . toStream ( bb ) ; int curr = - 1 ; java . io . ByteArrayOutputStream baos = new java...
org . junit . Assert . assertArrayEquals ( content , baos . toByteArray ( ) )
testRemoveShortRemovesFirstShort ( ) { buffer = org . smpp . util . ByteBufferTest . bufferOf ( ( ( byte ) ( 1 ) ) , ( ( byte ) ( 2 ) ) , ( ( byte ) ( 3 ) ) , ( ( byte ) ( 4 ) ) ) ; short s = buffer . removeShort ( ) ; "<AssertPlaceHolder>" ; } removeShort ( ) { short result = 0 ; byte [ ] resBuff = removeBytes ( org ....
org . junit . Assert . assertEquals ( ( ( 1 << 8 ) + 2 ) , s )
Execute_RequestSuccess_ReturnsOkMessage ( ) { com . tw . go . task . check_mk . CheckMkStub . SetupRequestOk ( ) ; com . tw . go . task . check_mk . EditHostTaskExecutor taskExecutor = new com . tw . go . task . check_mk . EditHostTaskExecutor ( com . tw . go . task . check_mk . EditHostTaskExecutorTests . consoleLogge...
org . junit . Assert . assertEquals ( result . responseCode ( ) , DefaultGoApiResponse . SUCCESS_RESPONSE_CODE )
testFindPermissionsByOrcidAndClient ( ) { java . util . List < org . orcid . jaxb . model . v3 . rc2 . notification . Notification > notificationPermissions = java . util . stream . IntStream . range ( 0 , 10 ) . mapToObj ( ( i ) -> new org . orcid . jaxb . model . v3 . rc2 . notification . permission . NotificationPer...
org . junit . Assert . assertEquals ( notificationPermissions . size ( ) , notifications . getNotifications ( ) . size ( ) )
testNullPayload ( ) { jsonParameters . add ( lambdaKey1 ) ; jsonParameters . add ( lambdaKey2 ) ; jsonParameters . add ( keyPayload ) ; jsonParameters . add ( keyPayloadNull ) ; com . xti . jenkins . plugin . awslambda . service . JsonPathParser jsonPathParser = new com . xti . jenkins . plugin . awslambda . service . ...
org . junit . Assert . assertEquals ( 0 , parseResult . size ( ) )
foreach_A$VoidFunction1_Seq ( ) { com . m3 . scalaflavor4j . CollectionLike < java . lang . String > xs = com . m3 . scalaflavor4j . Seq . apply ( "foo" , "barr" ) ; com . m3 . scalaflavor4j . Generator < java . lang . String > gen = com . m3 . scalaflavor4j . Generator . apply ( xs ) ; final com . m3 . scalaflavor4j ....
org . junit . Assert . assertThat ( called . count , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 2 ) ) )
testCheckToken ( ) { sun . security . tools . keytool . CertAndKeyGen gen = new sun . security . tools . keytool . CertAndKeyGen ( "RSA" , "SHA1WithRSA" , null ) ; gen . generate ( 1024 ) ; java . security . cert . X509Certificate cert = gen . getSelfCertificate ( new sun . security . x509 . X500Name ( "CN=ROOT" ) , ne...
org . junit . Assert . assertTrue ( check )
testSearchBusinessObjectDefinitionDescriptionSuggestions ( ) { org . finra . herd . model . api . xml . BusinessObjectDefinitionDescriptionSuggestionSearchKey businessObjectDefinitionDescriptionSuggestionSearchKey = new org . finra . herd . model . api . xml . BusinessObjectDefinitionDescriptionSuggestionSearchKey ( NA...
org . junit . Assert . assertEquals ( businessObjectDefinitionDescriptionSuggestionSearchResponse , response )
size_bicyclo ( ) { int [ ] [ ] bicyclo = org . openscience . cdk . graph . InitialCyclesTest . bicyclo ( ) ; org . openscience . cdk . graph . EssentialCycles essential = new org . openscience . cdk . graph . EssentialCycles ( bicyclo ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . cells . size ( ) ; }
org . junit . Assert . assertThat ( essential . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
mustDiscoverRelationshipInStoreMissingFromIndex ( ) { org . neo4j . graphdb . GraphDatabaseService db = createDatabase ( ) ; try ( org . neo4j . graphdb . Transaction tx = db . beginTx ( ) ) { db . execute ( java . lang . String . format ( org . neo4j . kernel . api . impl . fulltext . FulltextProceduresTest . RELATION...
org . junit . Assert . assertFalse ( result . isSuccessful ( ) )
testHashCode ( ) { edu . illinois . library . cantaloupe . image . Identifier id1 = new edu . illinois . library . cantaloupe . image . Identifier ( "cats" ) ; edu . illinois . library . cantaloupe . image . Identifier id2 = new edu . illinois . library . cantaloupe . image . Identifier ( "cats" ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( id1 . hashCode ( ) , id2 . hashCode ( ) )
test ( ) { org . seasar . extension . jdbc . gen . internal . exception . NextVersionDirectoryExistsRuntimeException e = new org . seasar . extension . jdbc . gen . internal . exception . NextVersionDirectoryExistsRuntimeException ( "aaa" ) ; "<AssertPlaceHolder>" ; System . out . println ( e . getMessage ( ) ) ; } get...
org . junit . Assert . assertEquals ( "aaa" , e . getVersionDirPath ( ) )
testHavingWithSubQuery ( ) { java . lang . String query = format ( ( "SELECT<sp>T1.PNUM<sp>FROM<sp>%1$s.T1<sp>T1<sp>GROUP<sp>BY<sp>T1.PNUM<sp>" + ( "HAVING<sp>T1.PNUM<sp>IN<sp>" + "(SELECT<sp>T2.PNUM<sp>FROM<sp>%1$s.T2<sp>T2<sp>GROUP<sp>BY<sp>T2.PNUM<sp>HAVING<sp>SUM(T2.BUDGET)<sp>><sp>25000)" ) ) , com . splicemachine...
org . junit . Assert . assertEquals ( 3 , com . splicemachine . homeless . TestUtils . resultSetToMaps ( rs ) . size ( ) )
getChildren ( ) { java . util . List < org . eclipse . swt . widgets . Widget > children = new org . eclipse . swtbot . swt . finder . resolvers . NullResolver ( ) . getChildren ( null ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( nextIndex ) == 0 ; }
org . junit . Assert . assertTrue ( children . isEmpty ( ) )
testGetNestedObject ( ) { org . apache . tiles . request . Request request = createMock ( org . apache . tiles . request . Request . class ) ; org . apache . tiles . request . ApplicationContext applicationContext = createMock ( org . apache . tiles . request . ApplicationContext . class ) ; expect ( request . getAppli...
org . junit . Assert . assertEquals ( applicationContext , extractor . getNestedObject ( request ) )
testNumberOfCountries ( ) { "<AssertPlaceHolder>" ; } getNumberOfCountries ( ) { return com . gisgraphy . helper . StateAbbreviator . states . size ( ) ; }
org . junit . Assert . assertEquals ( 8 , com . gisgraphy . helper . StateAbbreviator . getNumberOfCountries ( ) )
testDeleteFragmentEntry ( ) { com . liferay . portal . kernel . service . ServiceContext serviceContext = com . liferay . portal . kernel . test . util . ServiceContextTestUtil . getServiceContext ( _group . getGroupId ( ) , com . liferay . portal . kernel . test . util . TestPropsValues . getUserId ( ) ) ; com . lifer...
org . junit . Assert . assertNull ( com . liferay . fragment . service . FragmentEntryServiceUtil . fetchFragmentEntry ( fragmentEntry . getFragmentEntryId ( ) ) )
testWithException ( ) { java . lang . Exception e = new java . lang . IllegalArgumentException ( "Oh<sp>noes" ) ; r = new org . apache . accumulo . server . problems . ProblemReport ( org . apache . accumulo . server . problems . ProblemReportTest . TABLE_ID , ProblemType . FILE_READ , org . apache . accumulo . server ...
org . junit . Assert . assertEquals ( "Oh<sp>noes" , r . getException ( ) )
assertThatThingRegistryDelegatesConfigUpdateToThingHandler ( ) { org . eclipse . smarthome . core . thing . ThingUID thingUID = new org . eclipse . smarthome . core . thing . ThingUID ( "binding:type:thing" ) ; org . eclipse . smarthome . core . thing . Thing thing = org . eclipse . smarthome . core . thing . binding ....
org . junit . Assert . assertThat ( changedParameters . entrySet ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( parameters . entrySet ( ) ) ) )
thisIsAPassingTest ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
noIntersectionBecauseParallel ( ) { jetbrains . jetpad . geometry . DoubleSegment s1 = new jetbrains . jetpad . geometry . DoubleSegment ( new jetbrains . jetpad . geometry . DoubleVector ( 0 , 1 ) , new jetbrains . jetpad . geometry . DoubleVector ( 0 , ( - 1 ) ) ) ; jetbrains . jetpad . geometry . DoubleSegment s2 = ...
org . junit . Assert . assertNull ( s1 . intersection ( s2 ) )
getAsObject_GermanLocale ( ) { context = new org . oscm . ui . stubs . FacesContextStub ( java . util . Locale . GERMAN ) ; java . lang . String str = "1,23" ; javax . faces . component . UIComponent component = org . oscm . ui . converter . ConverterTestHelper . getComponent ( false , null , null , "discount" ) ; java...
org . junit . Assert . assertEquals ( expected , actual )
testEmpty ( ) { org . apache . hadoop . hdfs . server . datanode . FSDataset . reconcileRoughBlockScan ( seenOnDisk , volumeMap , ongoingCreates ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return dfsclients . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( seenOnDisk . isEmpty ( ) )
testExecuteTask ( ) { java . lang . Runnable task = mock ( org . axonframework . messaging . unitofwork . Runnable . class ) ; doNothing ( ) . when ( task ) . run ( ) ; subject . execute ( task ) ; org . mockito . InOrder inOrder = inOrder ( task , subject ) ; inOrder . verify ( subject ) . start ( ) ; inOrder . verify...
org . junit . Assert . assertFalse ( subject . isActive ( ) )
supportsInitiallyDeferrableColumns ( ) { "<AssertPlaceHolder>" ; } getDatabase ( ) { return database ; }
org . junit . Assert . assertTrue ( getDatabase ( ) . supportsInitiallyDeferrableColumns ( ) )
testCheckNoHeadersAreInserted ( ) { setInsertHeadersAndStart ( false ) ; ch . qos . logback . access . spi . IAccessEvent event = createAccessEvent ( ) ; appender . append ( event ) ; ch . qos . logback . core . util . StatusPrinter . print ( context . getStatusManager ( ) ) ; java . sql . Statement stmt = connectionSo...
org . junit . Assert . assertFalse ( rs . next ( ) )
findAll ( ) { int size = this . customerService . findAll ( ) . size ( ) ; "<AssertPlaceHolder>" ; } findAll ( ) { org . springframework . jdbc . core . RowMapper < com . example . Customer > rowMapper = ( rs , i ) -> new com . example . Customer ( rs . getLong ( "ID" ) , rs . getString ( "EMAIL" ) ) ; return this . jd...
org . junit . Assert . assertEquals ( size , 2 )
testGamma ( ) { for ( int i = 0 ; i < ( org . hipparchus . special . GammaTest . GAMMA_REF . length ) ; i ++ ) { final double [ ] ref = org . hipparchus . special . GammaTest . GAMMA_REF [ i ] ; final double x = ref [ 0 ] ; final double expected = ref [ 1 ] ; final double actual = org . hipparchus . special . Gamma . g...
org . junit . Assert . assertEquals ( java . lang . Double . toString ( x ) , expected , actual , tol )
computeFactorForUsageTime_UsageExceedBillingPeriod ( ) { double factor = new org . oscm . billingservice . business . calculation . revenue . CostCalculatorProRata ( ) . computeFactorForUsageTime ( PricingPeriod . MONTH , org . oscm . billingservice . business . calculation . revenue . BillingInputFactory . newBillingI...
org . junit . Assert . assertEquals ( 1 , factor , 0 )
testTokenRefTreeProperty ( ) { java . lang . String action = "$ID.tree;" ; java . lang . String expecting = "ID1_tree;" ; org . antlr . test . ErrorQueue equeue = new org . antlr . test . ErrorQueue ( ) ; org . antlr . test . ErrorManager . setErrorListener ( equeue ) ; org . antlr . test . Grammar g = new org . antlr ...
org . junit . Assert . assertEquals ( expecting , found )
getNumberOfProcessDeploymentInfosCanBeStartedByUsersManagedBy ( ) { final org . bonitasoft . engine . persistence . QueryOptions options = new org . bonitasoft . engine . persistence . QueryOptions ( 0 , 10 ) ; final long userId = 9 ; when ( persistenceService . getNumberOfEntities ( org . bonitasoft . engine . core . ...
org . junit . Assert . assertEquals ( 1L , result )
should_get_with_body_as_stream ( ) { final java . lang . String url = "http://127.0.0.1:8080/some/thing" ; final java . lang . String msg = "Hello<sp>world!" ; stubFor ( get ( urlEqualTo ( "/some/thing" ) ) . willReturn ( aResponse ( ) . withHeader ( "Content-Type" , "text/plain" ) . withBody ( msg ) ) ) ; com . flow ....
org . junit . Assert . assertEquals ( msg , content . toString ( ) )
isNotDestroyedWithOneHitPoint ( ) { hitPointBasedDestructibility . reduce ( ( ( com . fundynamic . d2tm . game . behaviors . HitPointBasedDestructibilityTest . MAX_HIT_POINTS ) - 1 ) ) ; "<AssertPlaceHolder>" ; } isZero ( ) { return ( ( getXAsInt ( ) ) == 0 ) && ( ( getYAsInt ( ) ) == 0 ) ; }
org . junit . Assert . assertFalse ( hitPointBasedDestructibility . isZero ( ) )
testCheckLocksThrowsExceptionAfterMaxTemporaryStorageExceptions ( ) { com . thinkaurelius . titan . diskstorage . locking . ConsistentKeyLockStatus lockStatus = makeStatusNow ( ) ; currentTimeNS = currentTimeNS . plusNanos ( 1 ) ; expect ( lockState . getLocksForTx ( defaultTx ) ) . andReturn ( com . google . common . ...
org . junit . Assert . assertNotNull ( tse )
testSetReplyToAddressFromDestinationWithTempTopic ( ) { java . lang . String testAddress = "testAddress" ; org . apache . qpid . jms . JmsDestination destination = new org . apache . qpid . jms . JmsTemporaryTopic ( "testAddress" ) ; org . apache . qpid . jms . provider . amqp . message . AmqpJmsMessageFacade message =...
org . junit . Assert . assertNull ( message . getMessageAnnotations ( ) )
testGetParametersWithDefaultEntityAndDisabledSecurity ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . specoffer . SpecOfferBenefit entity = new org . lnu . is . domain . specoffer . SpecOfferBenefit ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashM...
org . junit . Assert . assertEquals ( expected , actual )
testDumpNoBean ( ) { jadConfig = new com . github . joschi . jadconfig . JadConfig ( repository ) ; jadConfig . process ( ) ; "<AssertPlaceHolder>" ; } dump ( ) { final java . util . Map < java . lang . String , java . lang . String > configurationDump = new java . util . HashMap < java . lang . String , java . lang . ...
org . junit . Assert . assertTrue ( jadConfig . dump ( ) . isEmpty ( ) )
testApiMisuse5_1 ( ) { "<AssertPlaceHolder>" ; } formatUnrounded ( org . ocpsoft . prettytime . Duration ) { return ( duration . getQuantity ( ) ) + "<sp>minut" ; }
org . junit . Assert . assertEquals ( t . formatUnrounded ( new java . util . Date ( ) ) , t . formatUnrounded ( ( ( java . util . Calendar ) ( null ) ) ) )
shouldRetrieveWeakReferrers ( ) { javax . jcr . Node nodeA = session . getRootNode ( ) . addNode ( "A" ) ; nodeA . addMixin ( "mix:referenceable" ) ; javax . jcr . Node nodeB = session . getRootNode ( ) . addNode ( "B" ) ; nodeB . addMixin ( "mix:referenceable" ) ; javax . jcr . Node referrerA = session . getRootNode (...
org . junit . Assert . assertEquals ( referrerIds , resultIds )
testCopyDynAny ( ) { java . lang . String msg ; org . omg . CORBA . TypeCode tc = null ; org . omg . DynamicAny . DynStruct dynAny = null ; org . omg . DynamicAny . DynStruct dynAny2 = null ; tc = org . jacorb . test . StructTypeHelper . type ( ) ; dynAny = createDynAnyFromTypeCode ( tc ) ; dynAny2 = ( ( org . omg . Dy...
org . junit . Assert . assertTrue ( msg , dynAny . equal ( dynAny2 ) )
testBuildDockerFile ( ) { io . fabric8 . maven . docker . assembly . Arguments a = Arguments . Builder . get ( ) . withParam ( "c1" ) . withParam ( "foo" 3 ) . build ( ) ; io . fabric8 . maven . docker . assembly . Arguments b = Arguments . Builder . get ( ) . withParam ( "foo" 8 ) . withParam ( "foo" 1 ) . build ( ) ;...
org . junit . Assert . assertEquals ( expected , stripCR ( dockerfileContent ) )
null_style_override ( ) { com . asakusafw . dmdl . directio . json . driver . ModelLoader loaded = generateJavaFromLines ( new java . lang . String [ ] { "a" 1 , "<sp>null_style<sp>=<sp>absent," , ")" , "simple<sp>=<sp>{" , "<sp>a<sp>:<sp>TEXT;" , "<sp>@directio.json.field(null_style<sp>=<sp>value)" , "<sp>b<sp>:<sp>TE...
org . junit . Assert . assertThat ( com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . parse ( contents ) , com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . contains ( com . asakusafw . dmdl . directio . json . driver . JsonFormatEmitterTest . map ( "b" , "a" 0 ) ) )
testConfigViaClasspathPropertyFile ( ) { java . lang . String key = "testProperty02" ; java . lang . String value = "test_value_02" ; java . lang . String configuredValue = org . apache . deltaspike . core . api . config . ConfigResolver . getPropertyValue ( key ) ; "<AssertPlaceHolder>" ; } getPropertyValue ( java . l...
org . junit . Assert . assertEquals ( value , configuredValue )
testGetMountPoints ( ) { org . apache . hadoop . fs . viewfs . ViewFs viewfs = ( ( org . apache . hadoop . fs . viewfs . ViewFs ) ( fcView . getDefaultFileSystem ( ) ) ) ; org . apache . hadoop . fs . viewfs . ViewFs . MountPoint [ ] mountPoints = viewfs . getMountPoints ( ) ; "<AssertPlaceHolder>" ; } getMountPoints (...
org . junit . Assert . assertEquals ( 8 , mountPoints . length )
proxyWithIdSpecified ( ) { java . lang . String remoteHost = "http://machine1:5555" ; org . openqa . grid . internal . Registry registry = org . openqa . grid . internal . Registry . newInstance ( ) ; org . openqa . grid . common . RegistrationRequest req = org . openqa . grid . common . RegistrationRequest . build ( "...
org . junit . Assert . assertEquals ( "abc" , p . getId ( ) )
shouldFailConnectionWhenResponseHeaderUpgradeNotWebSocket ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . kaazing . gateway . transport . test . Expectations ( ) { { never ( handler ) . se...
org . junit . Assert . assertFalse ( connectFuture . isConnected ( ) )
testReloadNull ( ) { initializeExpectedProject ( 1 ) ; expect ( resourceManager . getOptions ( ) ) . andReturn ( mockOptions ) ; expect ( resourceManager . get ( com . google . cloud . resourcemanager . ProjectTest . PROJECT_INFO . getProjectId ( ) ) ) . andReturn ( null ) ; replay ( resourceManager ) ; com . google . ...
org . junit . Assert . assertNull ( reloadedProject )
testConvertAll ( ) { java . lang . Long id = 1L ; java . lang . String abbrName = "abbr<sp>Name" ; java . lang . String name = "n<sp>a<sp>m<sp>e" ; org . lnu . is . resource . employee . status . EmployeeStatusResource source = new org . lnu . is . resource . employee . status . EmployeeStatusResource ( ) ; source . se...
org . junit . Assert . assertEquals ( expecteds , actuals )
removeIgnoresMissingValue ( ) { io . grpc . Metadata m = new io . grpc . Metadata ( ) ; io . grpc . Metadata . Key < java . lang . String > key = io . grpc . internal . GrpcUtil . USER_AGENT_KEY ; boolean success = m . remove ( key , "agent" ) ; "<AssertPlaceHolder>" ; } remove ( io . grpc . Metadata$Key , T ) { com . ...
org . junit . Assert . assertFalse ( success )
manageModificationVDiskDeletion_VSDISK_DELETION_REQUESTED ( ) { org . oscm . app . iaas . data . FlowState flowState = org . oscm . app . iaas . data . FlowState . VSDISK_DELETION_REQUESTED ; org . oscm . app . iaas . data . FlowState newState = null ; paramHandler . getIaasContext ( ) . setVSystemStatus ( "NORMAL" ) ;...
org . junit . Assert . assertEquals ( FlowState . VSDISK_DETACHING , newState )
testShouldBeAbleToMixUpperAndLowerCaseLetters ( ) { driver . get ( pages . javascriptPage ) ; org . openqa . selenium . WebElement keyReporter = driver . findElement ( org . openqa . selenium . By . id ( "keyReporter" ) ) ; keyReporter . sendKeys ( "me@eXample.com" ) ; "<AssertPlaceHolder>" ; } getAttribute ( java . la...
org . junit . Assert . assertThat ( keyReporter . getAttribute ( "value" ) , org . hamcrest . Matchers . is ( "me@eXample.com" ) )
setMeasurand_soc_measurandIsSet ( ) { java . lang . String measurand = "SoC" ; sampledValue . setMeasurand ( measurand ) ; "<AssertPlaceHolder>" ; } getMeasurand ( ) { return measurand ; }
org . junit . Assert . assertThat ( sampledValue . getMeasurand ( ) , org . hamcrest . CoreMatchers . equalTo ( measurand ) )
requestTimeResolverCalled ( ) { java . util . Date d = new java . util . Date ( ) ; when ( requestTimeResolver . resolveRequestTime ( request ) ) . thenReturn ( d ) ; requestedTimeResolver . resolve ( httpCommand , null , builder ) ; "<AssertPlaceHolder>" ; } getRequestTime ( ) { return requestTime ; }
org . junit . Assert . assertEquals ( d , builder . getRequestTime ( ) )
putByPath_path_existing_not_overlapping ( ) { java . util . Map < java . lang . String , java . lang . Object > input = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) { { put ( "x" , "1" ) ; put ( "y" , new java . util . HashMap < java . lang . String , java . lang . Object > ( ) { { put ...
org . junit . Assert . assertEquals ( expect , input )
testVerifyAndRecoverFromOldAndTemp ( ) { byte [ ] old = new byte [ ] { 1 , 2 , 3 } ; byte [ ] neu = new byte [ ] { 1 , 2 , 3 , 4 } ; java . io . File file = new java . io . File ( createTestDir ( ) , "x" ) ; createFile ( new java . io . File ( ( ( file . getAbsolutePath ( ) ) + "-old" ) ) , old ) ; createFile ( new jav...
org . junit . Assert . assertArrayEquals ( old , res )
canCalculateTheResourcesPerDayFromTheWorkingEffortAndTheWorkableEffort ( ) { java . lang . Object [ ] periodicalNumber = new java . lang . Object [ ] { org . libreplan . business . workingday . ResourcesPerDay . calculateFrom ( seconds ( 10 ) , seconds ( 3 ) ) , readsAs ( 3 , 3333 ) } ; java . lang . Object [ ] [ ] exa...
org . junit . Assert . assertThat ( first , matcher )
multiLinkMultiSpanRoleDiffTest ( ) { org . apache . uima . jcas . JCas jcasA = org . apache . uima . fit . factory . JCasFactory . createJCas ( de . tudarmstadt . ukp . clarin . webanno . ui . curation . util . DiffTestUtils . createMultiLinkWithRoleTestTypeSytem ( "f1" ) ) ; org . apache . uima . cas . Type type = jca...
org . junit . Assert . assertEquals ( 1 , numHost )
shouldRejectSslTerminationElement ( ) { lb . setSslTermination ( new org . openstack . atlas . api . validation . validators . SslTermination ( ) ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( lb , org . openstack . atlas . api . validation . validators . PUT ...
org . junit . Assert . assertFalse ( result . passedValidation ( ) )
delete ( ) { newSiteLink ( ) ; rdfRepository . syncWithMode ( "Q23" , java . util . Collections . < org . openrdf . model . Statement > emptyList ( ) ) ; org . openrdf . query . TupleQueryResult r = rdfRepository . query ( "SELECT<sp>*<sp>WHERE<sp>{?s<sp>?p<sp>?o}" ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { if ( close...
org . junit . Assert . assertFalse ( r . hasNext ( ) )
testQCStatementOnly ( ) { eu . europa . esig . dss . validation . reports . wrapper . TrustedServiceWrapper service = new eu . europa . esig . dss . validation . reports . wrapper . TrustedServiceWrapper ( ) ; service . setCapturedQualifiers ( java . util . Arrays . asList ( ServiceQualification . QC_STATEMENT ) ) ; "<...
org . junit . Assert . assertTrue ( condition . isConsistent ( service ) )
testEventManagement ( ) { final int n = 5 ; final int maxIterations = 100 ; final org . apache . commons . math3 . linear . RealLinearOperator a = new org . apache . commons . math3 . linear . HilbertMatrix ( n ) ; final org . apache . commons . math3 . linear . IterativeLinearSolver solver ; for ( int i = 0 ; i < n ; ...
org . junit . Assert . assertEquals ( msg , expected , actual , 0.0 )
testGetDoesntMarkStateDirty ( ) { int count = 0 ; for ( java . lang . Class < ? extends com . vaadin . ui . Component > clazz : com . vaadin . tests . VaadinClasses . getComponents ( ) ) { if ( ( clazz . isInterface ( ) ) || ( java . lang . reflect . Modifier . isAbstract ( clazz . getModifiers ( ) ) ) ) { continue ; }...
org . junit . Assert . assertTrue ( ( count > 0 ) )
testEmptyValueIterator ( ) { io . netty . handler . codec . http2 . Http2Headers headers = io . netty . handler . codec . http2 . ReadOnlyHttp2HeadersTest . newServerHeaders ( ) ; java . util . Iterator < java . lang . CharSequence > itr = headers . valueIterator ( "foo" ) ; "<AssertPlaceHolder>" ; try { itr . next ( )...
org . junit . Assert . assertFalse ( itr . hasNext ( ) )
should_throw_error_if_array_is_null ( ) { thrown . expect ( org . fest . util . NullPointerException . class ) ; java . lang . Object [ ] elements = null ; "<AssertPlaceHolder>" ; } newArrayList ( T [ ] ) { org . fest . util . Preconditions . checkNotNull ( elements ) ; java . util . ArrayList < T > list = org . fest ....
org . junit . Assert . assertNull ( org . fest . util . Lists . newArrayList ( elements ) )
applyToLeftTest ( ) { java . util . List < org . threadly . util . Pair < java . lang . String , java . lang . String > > pairs = makeRandomPairs ( ) ; java . util . List < java . lang . String > leftCollected = new java . util . ArrayList ( pairs . size ( ) ) ; org . threadly . util . Pair . applyToLeft ( pairs , ( s ...
org . junit . Assert . assertEquals ( org . threadly . util . Pair . collectLeft ( pairs ) , leftCollected )
getHBaseShim ( ) { org . pentaho . hadoop . shim . spi . HadoopShim hadoopShim = new org . pentaho . hadoop . shim . spi . MockHadoopShim ( ) ; org . pentaho . hbase . shim . spi . HBaseShim hbaseShim = new org . pentaho . hadoop . shim . spi . MockHBaseShim ( ) ; org . pentaho . hadoop . shim . HadoopConfiguration c =...
org . junit . Assert . assertEquals ( hbaseShim , c . getHBaseShim ( ) )
checkAmbassadorConfigExists ( ) { io . seldon . clustermanager . k8s . SeldonDeploymentOperator op = new io . seldon . clustermanager . k8s . SeldonDeploymentOperatorImpl ( getClusterManagerprops ( ) ) ; java . lang . String jsonStr = readFile ( "src/test/resources/model_simple.json" , StandardCharsets . UTF_8 ) ; io ....
org . junit . Assert . assertNotNull ( ambassadorConfig )
testGetPolicyGroupsByDomain_associationsExist_assertPoliciesRetrieved ( ) { final org . nhindirect . config . store . Domain domain = new org . nhindirect . config . store . Domain ( ) ; domain . setDomainName ( "Test<sp>Domain" ) ; dmDao . add ( domain ) ; final org . nhindirect . config . store . CertPolicyGroup grou...
org . junit . Assert . assertEquals ( 1 , policies . size ( ) )
testDistinctTupleQueryResults ( ) { org . eclipse . rdf4j . query . BindingSet a = new org . eclipse . rdf4j . query . impl . ListBindingSet ( twoBindingNames , foo , lit1 ) ; org . eclipse . rdf4j . query . BindingSet b = new org . eclipse . rdf4j . query . impl . ListBindingSet ( twoBindingNames , bar , lit2 ) ; tqr1...
org . junit . Assert . assertFalse ( processed . contains ( result ) )
givenValidInstance_whenEqualsNull_thenReturnsFalse ( ) { T firstInstance = newValidInstance ( ) ; boolean equal = firstInstance . equals ( null ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o . getClass ( ) ) ) ) return f...
org . junit . Assert . assertThat ( equal , org . hamcrest . CoreMatchers . equalTo ( false ) )
testPropertiesAreCachedWhenQueried ( ) { org . osgi . framework . ServiceRegistration < org . apache . aries . component . dsl . test . CachingServiceReferenceTests . Service > serviceRegistration = org . apache . aries . component . dsl . test . CachingServiceReferenceTests . bundleContext . registerService ( org . ap...
org . junit . Assert . assertEquals ( serviceReference . getProperty ( "property" ) , cachingServiceReference . getProperty ( "property" ) )
test_isString ( ) { java . lang . String javaType = "java.lang.String" ; boolean result = databaseDataTypesUtils . isString ( javaType ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( result )
testCreateMarketingProductWithParameters ( ) { org . oscm . internal . vo . VOServiceDetails product = createProductWithParameters ( "test" ) ; java . util . List < org . oscm . internal . vo . VOParameter > params = product . getParameters ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return categoriesForMarketplace . si...
org . junit . Assert . assertEquals ( 3 , params . size ( ) )
testWithNoOutliers ( ) { org . apache . hadoop . hdfs . server . datanode . metrics . DataNodePeerMetrics peerMetrics = new org . apache . hadoop . hdfs . server . datanode . metrics . DataNodePeerMetrics ( "PeerMetrics-For-Test" ) ; org . apache . hadoop . metrics2 . lib . MetricsTestHelper . replaceRollingAveragesSch...
org . junit . Assert . assertTrue ( peerMetrics . getOutliers ( ) . isEmpty ( ) )
testProxyInjectionModeArgCanBeSet ( ) { configuration . setProxyInjectionModeArg ( true ) ; "<AssertPlaceHolder>" ; } getProxyInjectionModeArg ( ) { return proxyInjectionModeArg ; }
org . junit . Assert . assertTrue ( configuration . getProxyInjectionModeArg ( ) )
testImportTemplateInGroupFileFromGroupFile ( ) { java . lang . String dir = getRandomDir ( ) ; java . lang . String groupFile = "a()<sp>::=<sp>\"g1<sp>a\"\n" + "b()<sp>::=<sp>\"<c()>\"\n" ; writeFile ( dir , "x/group.stg" , groupFile ) ; groupFile = "b()<sp>::=<sp>\"g2<sp>b\"\n" + "c()<sp>::=<sp>\"g2<sp>c\"\n" ; writeF...
org . junit . Assert . assertEquals ( expected , result )
autwireAnnotations ( ) { com . alibaba . citrus . springext . support . context . MyClass myClass = ( ( com . alibaba . citrus . springext . support . context . MyClass ) ( getFactory ( ) . getBean ( "myClass" ) ) ) ; "<AssertPlaceHolder>" ; } getContainer ( ) { return container . get ( "container" ) ; }
org . junit . Assert . assertNotNull ( myClass . getContainer ( ) )