input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
rxNodeAdd ( ) { org . openhab . binding . zwave . internal . protocol . SerialMessage incomingMessage = new org . openhab . binding . zwave . internal . protocol . SerialMessage ( new byte [ ] { 1 , 7 , 0 , 74 , 1 , 6 , 17 , 0 , ( ( byte ) ( 164 ) ) } ) ; System . out . println ( incomingMessage ) ; org . openhab . bin...
org . junit . Assert . assertTrue ( false )
qlAgeGreaterthanequal ( ) { java . lang . String sqlite = "SELECT<sp>*<sp>FROM<sp>users<sp>WHERE<sp>age<sp>>=<sp>16<sp>LIMIT<sp>10" ; java . lang . String api = "select<sp>*<sp>where<sp>age<sp>>=<sp>16" ; org . apache . usergrid . query . validator . QueryRequest request = new org . apache . usergrid . query . validato...
org . junit . Assert . assertTrue ( response . toString ( ) , response . result ( ) )
testZeroOneContainerCopyOf ( ) { com . ibm . wala . ipa . callgraph . AnalysisScope scope = com . ibm . wala . core . tests . callGraph . CallGraphTestUtil . makeJ2SEAnalysisScope ( TestConstants . WALA_TESTDATA , CallGraphTestUtil . REGRESSION_EXCLUSIONS ) ; com . ibm . wala . ipa . cha . ClassHierarchy cha = com . ib...
org . junit . Assert . assertEquals ( 1 , pointsToSet . size ( ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . portal . tools . service . builder . test . model . LocalizedEntryLocalization . class , _dynamicQueryCla...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testMatchingEventsInStreamMode ( ) { java . lang . String drl = "import<sp>org.drools.compiler.integrationtests.Misc2Test.SimpleEvent\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "declare<sp>SimpleEvent\n" + "<sp>@role(event)\n" ) + "when\n" 0 ) + "\n" ) + "rule<sp>\"RuleA\"\n" ) + "salience<sp>5\n" ) + "when\n" ) + "<sp>$f<sp...
org . junit . Assert . assertEquals ( 1 , i . get ( ) )
createAllowsCustomVerificationAmount ( ) { com . braintreegateway . integrationtest . Result < com . braintreegateway . integrationtest . Customer > customerResult = gateway . customer ( ) . create ( new com . braintreegateway . integrationtest . CustomerRequest ( ) ) ; com . braintreegateway . integrationtest . Custom...
org . junit . Assert . assertTrue ( paymentMethodResult . isSuccess ( ) )
getJoinedFolderSameFile ( ) { java . io . File pomFile = new java . io . File ( "pom.xml" ) ; "<AssertPlaceHolder>" ; } getJoinedFolder ( java . io . File , org . apache . maven . model . Model ) { java . io . File joinedFolder = baseDirectory ; for ( java . lang . String module : org . apache . maven . shared . projec...
org . junit . Assert . assertEquals ( pomFile . getParentFile ( ) , org . apache . maven . shared . project . utils . ProjectUtils . getJoinedFolder ( pomFile , pomFile ) )
whenRouteStateIsSetWithGenericMethodAndInteger_itMustBeSetCorrectly ( ) { com . graphhopper . jsprit . core . problem . solution . route . VehicleRoute route = getRoute ( mock ( com . graphhopper . jsprit . core . problem . vehicle . Vehicle . class ) ) ; com . graphhopper . jsprit . core . algorithm . state . StateMan...
org . junit . Assert . assertEquals ( 3 , getLoad )
ShouldCorrectLoadPlugin ( ) { info . smart_tools . smartactors . ioc . ikey . IKey collectionNameKey = mock ( info . smart_tools . smartactors . ioc . ikey . IKey . class ) ; when ( info . smart_tools . smartactors . ioc . named_keys_storage . Keys . getOrAdd ( info . smart_tools . smartactors . database . database_sto...
org . junit . Assert . assertEquals ( createNewInstanceStrategyArgumentCaptor . getValue ( ) . resolve ( collectionNameStr ) , collectionName )
g_VX1X_hasXage_gt_30X ( ) { final org . apache . tinkerpop . gremlin . process . traversal . Traversal < org . apache . tinkerpop . gremlin . structure . Vertex , org . apache . tinkerpop . gremlin . structure . Vertex > traversalMarko = get_g_VX1X_hasXage_gt_30X ( convertToVertexId ( "marko" ) ) ; printTraversalForm (...
org . junit . Assert . assertFalse ( traversalMarko . hasNext ( ) )
testBuildWithParametersAndDisabledDEfaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String abbrName = "abbrName" ; java . lang . String name = "name" ; org . lnu . is . domain . mark . scale . type . MarkScaleType context = new org . lnu . is . domain . mark . scale . ty...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testReverse ( ) { gov . sandia . cognition . data . convert . IdentityDataConverter < java . lang . Object > instance = new gov . sandia . cognition . data . convert . IdentityDataConverter < java . lang . Object > ( ) ; "<AssertPlaceHolder>" ; } reverse ( ) { return this ; }
org . junit . Assert . assertSame ( instance , instance . reverse ( ) )
testRestart ( ) { org . springframework . batch . core . JobExecution jobExecution = org . springframework . batch . test . MetaDataInstanceFactory . createJobExecution ( ) ; when ( jobExecutionDao . getJobExecution ( 123L ) ) . thenReturn ( jobExecution ) ; when ( jobInstanceDao . getJobInstance ( jobExecution ) ) . t...
org . junit . Assert . assertNotNull ( service . restart ( 123L ) )
setAllShouldOverwriteSomeAndLeaveOthersUntouched ( ) { io . netty . handler . codec . DefaultHeadersTest . TestDefaultHeaders h1 = io . netty . handler . codec . DefaultHeadersTest . newInstance ( ) ; h1 . add ( of ( "name1" ) , of ( "value1" ) ) ; h1 . add ( of ( "name2" ) , of ( "value2" ) ) ; h1 . add ( of ( "name2"...
org . junit . Assert . assertEquals ( expected , h1 )
shouldReturnTrueIfClientHasMobile ( ) { client . addPhone ( com . practicalunittesting . chp05 . mockornot . NotMockingTest . MOBILE_PHONE ) ; client . addPhone ( com . practicalunittesting . chp05 . mockornot . NotMockingTest . STATIONARY_PHONE ) ; "<AssertPlaceHolder>" ; } hasMobile ( ) { for ( com . practicalunittes...
org . junit . Assert . assertTrue ( client . hasMobile ( ) )
testReadB1GreatValue ( ) { _ios . writeByte ( 245 ) ; _ios . seek ( 0 ) ; final org . esa . s3tbx . dataio . ceos . CeosFileReader ceosReader = new org . esa . s3tbx . dataio . ceos . CeosFileReader ( _ios ) ; "<AssertPlaceHolder>" ; } readB1 ( ) { final long streamPosition = stream . getStreamPosition ( ) ; try { retu...
org . junit . Assert . assertEquals ( 245 , ceosReader . readB1 ( ) )
testValidate ( ) { com . streamsets . pipeline . lib . http . HttpRequestFragmenter fragmenter = new com . streamsets . pipeline . lib . http . NopHttpRequestFragmenter ( ) ; fragmenter . init ( null ) ; javax . servlet . http . HttpServletRequest req = org . mockito . Mockito . mock ( javax . servlet . http . HttpServ...
org . junit . Assert . assertTrue ( fragmenter . validate ( req , res ) )
testDocumentReferenceResources ( ) { ca . uhn . fhir . rest . client . api . IGenericClient client = ourClient ; int initialSize = client . search ( ) . forResource ( ca . uhn . fhir . jpa . provider . dstu3 . DocumentReference . class ) . returnBundle ( org . hl7 . fhir . dstu3 . model . Bundle . class ) . execute ( )...
org . junit . Assert . assertEquals ( 1 , ( newSize - initialSize ) )
testNested ( ) { { ch . qos . logback . core . pattern . parser . Parser < java . lang . Object > p = new ch . qos . logback . core . pattern . parser . Parser ( "%top<sp>%(%child%(%h))" ) ; ch . qos . logback . core . pattern . parser . Node t = p . parse ( ) ; ch . qos . logback . core . pattern . parser . Node witne...
org . junit . Assert . assertEquals ( witness , t )
coerceToEnumShouldWorkInSet ( ) { java . lang . reflect . Type type = com . facebook . buck . rules . coercer . TypeCoercerTest . TestFields . class . getField ( "setOfTestEnums" ) . getGenericType ( ) ; com . facebook . buck . rules . coercer . TypeCoercer < ? > coercer = typeCoercerFactory . typeCoercerForType ( type...
org . junit . Assert . assertEquals ( expected , result )
testRemoveValid ( ) { _cache . put ( "key1" , "value1" ) ; "<AssertPlaceHolder>" ; } remove ( K ) { V v ; boolean valid ; _accessLock . lock ( ) ; try { org . dcache . utils . CacheElement < V > element = _storage . remove ( k ) ; if ( element == null ) return null ; valid = element . validAt ( _timeSource . millis ( )...
org . junit . Assert . assertNotNull ( _cache . remove ( "key1" ) )
testBasicEncryption ( ) { com . google . crypto . tink . proto . EllipticCurveType curve = com . google . crypto . tink . proto . EllipticCurveType . NIST_P384 ; com . google . crypto . tink . proto . HashType hashType = com . google . crypto . tink . proto . HashType . SHA256 ; com . google . crypto . tink . proto . E...
org . junit . Assert . assertArrayEquals ( plaintext , hybridDecrypt . decrypt ( ciphertext , contextInfo ) )
testGetAllMaps ( ) { org . oscarehr . common . model . MeasurementMap measurementMap1 = new org . oscarehr . common . model . MeasurementMap ( ) ; org . oscarehr . common . dao . utils . EntityDataGenerator . generateTestDataForModelClass ( measurementMap1 ) ; dao . persist ( measurementMap1 ) ; org . oscarehr . common...
org . junit . Assert . assertTrue ( true )
testRemoveFactoryNonexistent ( ) { java . lang . String id = "nonexistent" ; flex . messaging . FlexFactory actual = broker . removeFactory ( id ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNull ( actual )
shouldReportWhenTestPasses ( ) { recordTestCoverage ( 0 , 0 , 0 , true ) ; "<AssertPlaceHolder>" ; } isGreenTest ( ) { return this . greenSuite ; }
org . junit . Assert . assertEquals ( true , this . result . isGreenTest ( ) )
testSeekPastFileSize ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . hdfs . HdfsConfiguration ( ) ; org . apache . hadoop . hdfs . MiniDFSCluster cluster = new org . apache . hadoop . hdfs . MiniDFSCluster . Builder ( conf ) . build ( ) ; org . apache . hadoop . fs . FileSystem fs ...
org . junit . Assert . assertEquals ( 65536 , stream . getPos ( ) )
whenMap_thenOk ( ) { user = new com . stackify . optional . User ( "anna@gmail.com" , "1234" ) ; java . lang . String email = java . util . Optional . ofNullable ( user ) . map ( ( u ) -> u . getEmail ( ) ) . orElse ( "default@gmail.com" ) ; "<AssertPlaceHolder>" ; } getEmail ( ) { return email ; }
org . junit . Assert . assertEquals ( email , user . getEmail ( ) )
shouldReturnEmptyListWhenNoDocumentsMatchGivenPhrase ( ) { initWithDefaultDocuments ( ) ; org . springframework . data . mongodb . core . query . TextQuery query = org . springframework . data . mongodb . core . query . TextQuery . queryText ( org . springframework . data . mongodb . core . query . TextCriteria . forDe...
org . junit . Assert . assertThat ( result , empty ( ) )
attachMetadataToPseudonym ( ) { eu . abc4trust . keyManager . KeyManager keyManager = new eu . abc4trust . keyManager . KeyManagerImpl ( new eu . abc4trust . keyManager . PersistenceStrategy ( new eu . abc4trust . keyManager . InMemoryKeyStorage ( ) ) , null ) ; eu . abc4trust . cryptoEngine . user . CryptoEngineUser e...
org . junit . Assert . assertNotNull ( pmd )
read_default_namespace ( ) { java . lang . String xml = "<icalendar>" + ( ( ( ( ( ( "<vcalendar>" + "<properties>" ) + "<prodid><text>-//Example<sp>Inc.//Example<sp>Client//EN</text></prodid>" ) + "<version><text>2.0</text></version>" ) + "</properties>" ) + "</vcalendar>" ) + "</icalendar>" ) ; biweekly . io . xml . X...
org . junit . Assert . assertNull ( reader . readNext ( ) )
bgpOpenMessageTest7 ( ) { short afi = 16388 ; byte res = 0 ; byte safi = 71 ; peer1 . peerChannelHandler . asNumber = 200 ; peer1 . peerChannelHandler . version = 4 ; peer1 . peerChannelHandler . holdTime = 120 ; peer1 . peerChannelHandler . isLargeAsCapabilitySet = true ; bgpControllerImpl . getConfig ( ) . setLargeAS...
org . junit . Assert . assertThat ( result , org . hamcrest . core . Is . is ( true ) )
getToOutputCode ( ) { just . niubi . httprequest . HttpRequestTest . handler = new just . niubi . httprequest . RequestHandler ( ) { @ just . niubi . httprequest . Override public void handle ( org . eclipse . jetty . server . Request request , javax . servlet . http . HttpServletResponse response ) { response . setSta...
org . junit . Assert . assertEquals ( just . niubi . httprequest . HTTP_OK , code . get ( ) )
shouldReturnEmptyConversionsSet ( ) { stubGetAll ( java . util . Collections . < com . qcadoo . model . api . Entity > emptyList ( ) ) ; final com . qcadoo . model . api . units . PossibleUnitConversions result = unitConversionService . getPossibleConversions ( "m" ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { if ( ( ent...
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
testUnicode ( ) { org . teiid . vdb . runtime . VDBKey key = new org . teiid . vdb . runtime . VDBKey ( ".1" , null ) ; "<AssertPlaceHolder>" ; } getName ( ) { return file . getName ( ) ; }
org . junit . Assert . assertEquals ( "" , key . getName ( ) )
testInvalidImportSources ( ) { final org . eclipse . che . api . project . server . FolderEntry project = new org . eclipse . che . api . project . server . FolderEntry ( "plugin-svn-test" , vfs . getMountPoint ( ) . getRoot ( ) . createFolder ( "project" ) ) ; try { java . lang . String fakeUrl = ( java . nio . file ....
org . junit . Assert . assertTrue ( message , assertBoolean )
getAdvertisedMessageEncodings_noEncodingsAdvertised ( ) { "<AssertPlaceHolder>" ; } getAdvertisedMessageEncodings ( ) { java . util . Set < java . lang . String > advertisedDecompressors = new java . util . HashSet ( decompressors . size ( ) ) ; for ( java . util . Map . Entry < java . lang . String , io . grpc . Decom...
org . junit . Assert . assertTrue ( registry . getAdvertisedMessageEncodings ( ) . isEmpty ( ) )
shouldReturnRegisteredValue ( ) { java . lang . Object object = "value<sp>for<sp>@Duration" ; savedAnnotationsHandler . onAnnotation ( ch . jalu . injector . samples . Duration . class , object ) ; java . lang . annotation . Annotation [ ] annotations = new java . lang . annotation . Annotation [ ] { ch . jalu . inject...
org . junit . Assert . assertThat ( ch . jalu . injector . InjectorTestHelper . unwrapFromSimpleResolution ( instantiation ) , org . hamcrest . Matchers . equalTo ( object ) )
testProcessTemplate7 ( ) { com . liferay . portal . kernel . template . Template template = new com . liferay . portal . template . velocity . internal . VelocityTemplate ( new com . liferay . portal . template . velocity . internal . VelocityTemplateTest . MockTemplateResource ( com . liferay . portal . template . vel...
org . junit . Assert . assertEquals ( com . liferay . portal . template . velocity . internal . VelocityTemplateTest . _TEST_VALUE , result )
testInvalidStatus ( ) { final org . bff . javampd . server . ErrorEvent [ ] errorEvent = new org . bff . javampd . server . ErrorEvent [ 1 ] ; errorMonitor . addErrorListener ( ( event ) -> errorEvent [ 0 ] = event ) ; errorMonitor . processResponseStatus ( "bogus:<sp>message" ) ; errorMonitor . checkStatus ( ) ; "<Ass...
org . junit . Assert . assertNull ( errorEvent [ 0 ] )
get_ok ( ) { org . searchisko . api . rest . ProjectRestService tested = getTested ( ) ; java . util . Map < java . lang . String , java . lang . Object > m = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; org . mockito . Mockito . when ( tested . entityService . get ( "10" ) ) . thenRe...
org . junit . Assert . assertEquals ( m , tested . get ( "10" ) )
should_calculate_karma_for_upvote ( ) { org . mamute . reputation . rules . VotedAtSomethingEvent votedAtSomething = new org . mamute . reputation . rules . VotedAtSomethingEvent ( new org . mamute . model . Vote ( null , org . mamute . model . VoteType . UP ) , null ) ; "<AssertPlaceHolder>" ; } reward ( ) { if ( vote...
org . junit . Assert . assertEquals ( 0 , votedAtSomething . reward ( ) )
testLoopsWithOptimizedOutExitBranches ( ) { org . antlr . test . Grammar g = new org . antlr . test . Grammar ( ( "lexer<sp>grammar<sp>t;\n" + "A<sp>:<sp>\'x\'*<sp>~\'x\'+<sp>;\n" ) ) ; java . lang . String expecting = ".s0-\'x\'->:s1=>1\n" + ".s0-{\'\\u0000\'..\'w\',<sp>\'y\'..\'\\uFFFF\'}->:s2=>2\n" ; checkDecision (...
org . junit . Assert . assertEquals ( expecting , result )
testManageFunctionAppSourceControl ( ) { "<AssertPlaceHolder>" ; } runSample ( com . microsoft . azure . management . Azure ) { final java . lang . String suffix = "square/index.js" 8 ; final java . lang . String app1Name = com . microsoft . azure . management . resources . fluentcore . utils . SdkContext . randomResou...
org . junit . Assert . assertTrue ( com . microsoft . azure . management . appservice . samples . ManageFunctionAppSourceControl . runSample ( azure ) )
testCallingMethodsOnNewMapLiteral ( ) { org . apache . commons . jexl3 . JexlExpression e = org . apache . commons . jexl3 . JEXL . createExpression ( "size({<sp>'foo'<sp>:<sp>'bar'<sp>}.values())" ) ; org . apache . commons . jexl3 . JexlContext jc = new org . apache . commons . jexl3 . MapContext ( ) ; java . lang . ...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , o )
givenNotAllEqualList_whenUsingApacheCommon_thenReturnFalse ( ) { boolean allEqual = com . baeldung . allequalelements . VerifyAllEqualListElementsUnitTest . verifyAllEqualListElements . verifyAllEqualUsingApacheCommon ( com . baeldung . allequalelements . VerifyAllEqualListElementsUnitTest . notAllEqualList ) ; "<Asser...
org . junit . Assert . assertFalse ( allEqual )
testGetSupportedConnectorTopologies ( ) { java . util . Set < org . talend . components . api . component . ConnectorTopology > supportedConnectorTopologies ; java . util . Set < org . talend . components . api . component . ConnectorTopology > requiredConnectorTopologies ; requiredConnectorTopologies = java . util . E...
org . junit . Assert . assertEquals ( requiredConnectorTopologies , supportedConnectorTopologies )
testGetText ( ) { opennlp . tools . parser . Parse p = opennlp . tools . parser . Parse . parseParse ( opennlp . tools . parser . ParseTest . PARSE_STRING ) ; java . lang . String expectedText = "She<sp>was<sp>just<sp>another<sp>freighter<sp>from<sp>the<sp>States<sp>,<sp>and<sp>she<sp>seemed<sp>as<sp>commonplace<sp>as<...
org . junit . Assert . assertEquals ( expectedText , p . getText ( ) )
testAddTagWithAttacTypeAndId_ZeroReturnTest ( ) { reset ( mockTagAttachMapper ) ; when ( mockTagAttachMapper . selectByExample ( any ( com . onboard . domain . mapper . model . TagAttachExample . class ) ) ) . thenReturn ( new java . util . ArrayList < com . onboard . domain . model . TagAttach > ( ) ) ; boolean ret = ...
org . junit . Assert . assertTrue ( ret )
testVoid ( ) { org . kitesdk . morphline . scriptengine . java . ScriptEvaluator script = new org . kitesdk . morphline . scriptengine . java . ScriptEvaluator ( javaImports , "int<sp>foo<sp>=<sp>0;<sp>" , org . kitesdk . morphline . api . Void . class , new java . lang . String [ ] { "x" } , new java . lang . Class [ ...
org . junit . Assert . assertNull ( result )
builderFromPlaceRequestShouldNotShareParams ( ) { com . gwtplatform . mvp . shared . proxy . PlaceRequest request = new com . gwtplatform . mvp . shared . proxy . PlaceRequest . Builder ( ) . nameToken ( "nameToken" ) . with ( "name1" , "value1" ) . with ( "name2" , "value2" ) . build ( ) ; com . gwtplatform . mvp . sh...
org . junit . Assert . assertNull ( request . getParameter ( "name3" , null ) )
collectIfToTarget ( ) { com . gs . collections . api . bag . sorted . ImmutableSortedBag < java . lang . Integer > integers = this . classUnderTest ( ) ; com . gs . collections . impl . bag . mutable . HashBag < java . lang . Integer > actual = integers . collectIf ( com . gs . collections . impl . bag . sorted . immut...
org . junit . Assert . assertEquals ( integers . toBag ( ) , actual )
testSequenceConstructor ( ) { final org . bouncycastle . asn1 . DERSequence seq = ( ( org . bouncycastle . asn1 . DERSequence ) ( fixture . toASN1Primitive ( ) ) ) ; org . jscep . asn1 . IssuerAndSubject issuerSubject = new org . jscep . asn1 . IssuerAndSubject ( seq ) ; "<AssertPlaceHolder>" ; } toASN1Primitive ( ) { ...
org . junit . Assert . assertEquals ( fixture , issuerSubject )
containsCorrectFilterForOrientation1 ( ) { java . io . File sourceFile = new java . io . File ( "test-resources/Exif/source_1.jpg" ) ; net . coobird . thumbnailator . tasks . io . FileImageSource source = new net . coobird . thumbnailator . tasks . io . FileImageSource ( sourceFile ) ; net . coobird . thumbnailator . T...
org . junit . Assert . assertTrue ( param . getImageFilters ( ) . isEmpty ( ) )
testParseAll ( ) { java . lang . String test = "ALL" ; java . util . List < uk . ac . tgac . rampart . stage . RampartStage > stageList = uk . ac . tgac . rampart . stage . RampartStageList . parse ( test ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { if ( stages . trim ( ) . equalsIgnoreCase ( "ALL" ) ...
org . junit . Assert . assertTrue ( ( ( stageList . size ( ) ) == ( uk . ac . tgac . rampart . stage . RampartStage . values ( ) . length ) ) )
createPRPA201306ForPatientNotFoundReceiverNull ( ) { org . hl7 . v3 . PRPAIN201306UV02 result ; gov . hhs . fha . nhinc . transform . subdisc . HL7PRPA201306Transforms transforms = new gov . hhs . fha . nhinc . transform . subdisc . HL7PRPA201306Transforms ( ) ; result = transforms . createPRPA201306ForPatientNotFound ...
org . junit . Assert . assertNull ( result )
testFunctionScoreQuery ( ) { com . liferay . portal . search . query . Query query = null ; com . liferay . portal . search . query . FunctionScoreQuery functionScoreQuery = com . liferay . portal . search . query . test . QueriesInstantiationTest . _queries . functionScore ( query ) ; "<AssertPlaceHolder>" ; } functio...
org . junit . Assert . assertNotNull ( functionScoreQuery )
testGetExternalDirectory ( ) { try { file = locationManager . getExternalDirectory ( ) ; "<AssertPlaceHolder>" ; org . hisp . dhis . external . location . LocationManagerTest . log . debug ( ( "External<sp>directory:<sp>" + ( file . getAbsolutePath ( ) ) ) ) ; } catch ( org . hisp . dhis . external . location . Locatio...
org . junit . Assert . assertTrue ( ( ( file . getAbsolutePath ( ) . length ( ) ) > 0 ) )
shouldInitializeTrafficSender ( ) { eu . smartenit . sbox . main . NetworkTrafficSenderRealSDNTest . logger . info ( "--Testing<sp>traffic<sp>sender<sp>initialize.<sp>--" ) ; eu . smartenit . sbox . ntm . NetworkTrafficManager ntm = new eu . smartenit . sbox . ntm . NetworkTrafficManager ( ) ; ntm . initialize ( Networ...
org . junit . Assert . assertTrue ( true )
mergetNoId ( ) { jpa . Account account = new jpa . Account ( ) ; account . setCashBalance ( 1000 ) ; account . setName ( "John" ) ; entityManager . merge ( account ) ; entityManager . flush ( ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( account . getId ( ) , 0 )
testIsDirectoryOnFile_shouldReturnFalse ( ) { writeToCache ( "/test_file.txt" ) ; org . eclipse . jgit . lib . AnyObjectId rootTree = commitToMaster ( ) . getTree ( ) ; "<AssertPlaceHolder>" ; } isDirectory ( java . lang . String , com . beijunyi . parallelgit . utils . AnyObjectId , com . beijunyi . parallelgit . util...
org . junit . Assert . assertFalse ( com . beijunyi . parallelgit . utils . TreeUtils . isDirectory ( "/test_file.txt" , rootTree , repo ) )
setCallID ( ) { final com . rapid7 . client . dcerpc . Header header = new com . rapid7 . client . dcerpc . Header ( ) ; header . setCallID ( 20 ) ; "<AssertPlaceHolder>" ; } getCallID ( ) { return callID ; }
org . junit . Assert . assertEquals ( 20 , header . getCallID ( ) )
testUnitNoBinding ( ) { org . kie . internal . builder . fluent . ExecutableBuilder f = org . kie . internal . builder . fluent . ExecutableBuilder . create ( ) ; f . newApplicationContext ( "app1" ) . getKieContainer ( releaseIdUnit ) . newRuleUnitExecutor ( ) . createDataSource ( org . drools . compiler . Person . cl...
org . junit . Assert . assertEquals ( 0 , requestContext . getOutputs ( ) . get ( "firedRulesNoBinding" ) )
testMultipleTransitiveDependencies ( ) { io . cdap . cdap . data2 . dataset2 . DatasetFramework framework = getFramework ( ) ; try { framework . addModule ( io . cdap . cdap . data2 . dataset2 . AbstractDatasetFrameworkTest . IN_MEMORY , new io . cdap . cdap . data2 . dataset2 . module . lib . inmemory . InMemoryTableM...
org . junit . Assert . assertTrue ( framework . hasInstance ( io . cdap . cdap . data2 . dataset2 . AbstractDatasetFrameworkTest . MY_DS ) )
testFindById ( ) { com . orientechnologies . orient . core . record . impl . ODocument document = new com . orientechnologies . orient . core . record . impl . ODocument ( "Color" ) . field ( "title" , "title" ) . field ( "titleasc" , "title" ) . field ( "color" , 123456 ) . field ( "created" , 1L ) . field ( "modified...
org . junit . Assert . assertEquals ( document . getIdentity ( ) . toString ( ) , color . getId ( ) )
shouldSendCommandInsertAction ( ) { com . devicehive . model . DeviceCommand command = new com . devicehive . model . DeviceCommand ( ) ; command . setCommand ( "test_command" ) ; command . setDeviceId ( com . devicehive . UUID . randomUUID ( ) . toString ( ) ) ; com . devicehive . CommandInsertRequest insertRequest = ...
org . junit . Assert . assertNotNull ( responseBody . getDeviceCommand ( ) )
testCloseInputStream ( ) { org . apache . olingo . odata2 . core . ep . util . CircleStreamBuffer csb = new org . apache . olingo . odata2 . core . ep . util . CircleStreamBuffer ( ) ; java . io . OutputStream write = csb . getOutputStream ( ) ; write . write ( "Test" . getBytes ( ) , 0 , 4 ) ; java . io . InputStream ...
org . junit . Assert . assertEquals ( 4 , count )
test_executeTask_ValidHost_InvalidBoardMapping ( ) { com . vmware . vrack . hms . task . oob . ipmi . SelfTestTaskTest . logger . info ( "TS:<sp>SelfTestTaskTest:<sp>test_executeTask_ValidHost_InvalidBoardMapping" ) ; com . vmware . vrack . hms . common . notification . TaskResponse taskResponse = new com . vmware . vr...
org . junit . Assert . assertNull ( node . getSytemBootOptions ( ) )
shouldFormatDateWithGivenPattern ( ) { java . lang . String dateString = "02/06/1991" ; java . lang . String pattern = "dd/MM/yyyy" ; java . text . SimpleDateFormat dateFormat = new java . text . SimpleDateFormat ( pattern ) ; java . util . Calendar date = java . util . Calendar . getInstance ( ) ; date . setTime ( dat...
org . junit . Assert . assertEquals ( dateString , dateAsStringFunction . generateValue ( ) )
testIntegerCodingLimit ( ) { final java . nio . ByteBuffer src1 = org . apache . hc . core5 . http2 . hpack . TestHPackCoding . createByteBuffer ( 127 , 128 , 255 , 255 , 255 , 7 ) ; "<AssertPlaceHolder>" ; final java . nio . ByteBuffer src2 = org . apache . hc . core5 . http2 . hpack . TestHPackCoding . createByteBuff...
org . junit . Assert . assertEquals ( Integer . MAX_VALUE , org . apache . hc . core5 . http2 . hpack . HPackDecoder . decodeInt ( src1 , 7 ) )
runTestStartProcessWithSecret1 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "GeneralJava/StartProcessWithSecret1.apk" ) ; "<AssertPlaceHolder>" ; } size ( ) { return set . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
testBerichtSyntaxException ( ) { final java . lang . String berichtOrigineel = org . apache . commons . io . IOUtils . toString ( nl . moderniseringgba . isc . esb . message . brp . impl . ZoekPersoonAntwoordBerichtTest . class . getResourceAsStream ( "zoekPersoonAntwoordBerichtSyntaxExceptionBericht.xml" ) ) ; final n...
org . junit . Assert . assertTrue ( ( brpBericht instanceof nl . moderniseringgba . isc . esb . message . brp . impl . OngeldigBericht ) )
testIntergenicOma1 ( ) { final java . lang . String outPath = runJannovarOnVCFLine ( "/sv_header.vcf" , "1\t59017449\t.\tN\t<CNV>\t.\t.\tSVTYPE=CNV;END=59017899" ) ; final java . lang . String expected = "1\t59017449\t.\tN\t<CNV>\t.\t.\tEND=59017899;" + ( ( "SVANN=intergenic_variant&structural_variant&coding_transcript...
org . junit . Assert . assertEquals ( expected , actual )
testConfigure_Disable ( ) { properties . put ( JacksonFeature . PROPERTY_DISABLE , true ) ; boolean result ; result = feature . configure ( context ) ; "<AssertPlaceHolder>" ; verify ( context , never ( ) ) . register ( org . mockito . Matchers . < com . englishtown . vertx . jersey . features . jackson . JacksonFeatur...
org . junit . Assert . assertFalse ( result )
testNLinkWithHardLink ( ) { java . nio . file . Path file = java . nio . file . Files . createFile ( root . resolve ( "file" ) ) ; java . nio . file . Path link = java . nio . file . Files . createLink ( root . resolve ( "link" ) , root . resolve ( "file" ) ) ; int nLink = ( ( java . lang . Integer ) ( java . nio . fil...
org . junit . Assert . assertEquals ( 2 , nLink )
testTautomerizationReaction ( ) { org . openscience . cdk . reaction . IReactionProcess type = new org . openscience . cdk . reaction . type . TautomerizationReaction ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( type )
matchesIsFalseForNonArrayFingerprints ( ) { com . fasterxml . jackson . databind . JsonNode parameters = mock ( com . fasterxml . jackson . databind . JsonNode . class ) ; when ( parameters . get ( "fingerprints" ) ) . thenReturn ( com . fasterxml . jackson . databind . node . BooleanNode . TRUE ) ; "<AssertPlaceHolder...
org . junit . Assert . assertFalse ( new com . yubico . u2f . attestation . matchers . FingerprintMatcher ( ) . matches ( mock ( java . security . cert . X509Certificate . class ) , parameters ) )
testIsAnySelectedStepUsedInTransHopsNothingSelectedCase ( ) { java . util . List < org . pentaho . di . trans . step . StepMeta > selectedSteps = asList ( new org . pentaho . di . trans . step . StepMeta ( ) , new org . pentaho . di . trans . step . StepMeta ( ) , new org . pentaho . di . trans . step . StepMeta ( ) ) ...
org . junit . Assert . assertFalse ( transMeta . isAnySelectedStepUsedInTransHops ( ) )
shouldReturnTheTargetContext ( ) { android . content . Context targetContext = mUnderTest . getTargetContext ( ) ; "<AssertPlaceHolder>" ; } getTargetContext ( ) { return null ; }
org . junit . Assert . assertNotNull ( targetContext )
_2 ( ) { int actual = new fr . inria . lille . examples . tcas . Tcas ( ) . is_upward_preferred ( 1 , 11 , 110 ) ; "<AssertPlaceHolder>" ; } is_upward_preferred ( int , int , int ) { int bias ; if ( 0 != inhibit ) { bias = down_sep ; } else { bias = up_sep ; } if ( bias > down_sep ) { return 1 ; } else { return 0 ; } }
org . junit . Assert . assertEquals ( 1 , actual )
testIfPresentOrElseWhenValuePresentAndEmptyActionNull ( ) { com . annimon . stream . OptionalInt . of ( 10 ) . ifPresentOrElse ( new com . annimon . stream . function . IntConsumer ( ) { @ com . annimon . stream . Override public void accept ( int value ) { "<AssertPlaceHolder>" ; } } , null ) ; } accept ( int ) { if (...
org . junit . Assert . assertThat ( value , org . hamcrest . Matchers . is ( 10 ) )
getGroupDisplayName ( ) { java . lang . String group = "vmmgrp1" ; com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_TDSLDAP_FailoverTest . c , "getGroupDisplayName" , "Checking<sp>with<sp>a<sp>valid<sp>group." ) ; "<AssertPlaceHolder>" ; } getGroupD...
org . junit . Assert . assertEquals ( "vmmgrp1" , com . ibm . ws . security . wim . adapter . ldap . fat . URAPIs_TDSLDAP_FailoverTest . servlet . getGroupDisplayName ( group ) )
testInsertActLeg_AtStart ( ) { org . matsim . api . core . v01 . population . Plan plan = org . matsim . core . population . PopulationUtils . createPlan ( org . matsim . core . population . PopulationUtils . getFactory ( ) . createPerson ( org . matsim . api . core . v01 . Id . create ( 1 , org . matsim . api . core ....
org . junit . Assert . assertEquals ( 3 , plan . getPlanElements ( ) . size ( ) )
jobShouldBeAssigned ( ) { "<AssertPlaceHolder>" ; } getJob ( ) { return job ; }
org . junit . Assert . assertEquals ( job , context . getJob ( ) )
testGetDetachedValue_Primitive ( ) { org . apache . crunch . types . writable . WritableType < java . lang . Integer , org . apache . hadoop . io . IntWritable > intType = org . apache . crunch . types . writable . Writables . ints ( ) ; intType . initialize ( new org . apache . hadoop . conf . Configuration ( ) ) ; ja...
org . junit . Assert . assertSame ( intValue , detachedValue )
checkKSessionInstantiation ( ) { final java . util . List < org . ext . uberfire . social . activities . model . SocialActivitiesEvent > events = query . executeAllRules ( ) ; "<AssertPlaceHolder>" ; } executeAllRules ( ) { java . util . List < org . ext . uberfire . social . activities . model . SocialActivitiesEvent ...
org . junit . Assert . assertNotNull ( events )
testMultipleResult ( ) { org . hawkular . apm . server . api . task . ProcessingUnit < java . lang . String , java . lang . String > pu = new org . hawkular . apm . server . api . task . ProcessingUnit < java . lang . String , java . lang . String > ( ) ; org . hawkular . apm . server . api . task . Processor < java . ...
org . junit . Assert . assertEquals ( 4 , results . size ( ) )
assertDestroySubBranchEventIsIgnored ( ) { when ( cleartool . doesViewExist ( "viewTag" ) ) . thenReturn ( Boolean . TRUE ) ; when ( cleartoolLsHistoryWithValidHistoryFormat ( ) ) . thenReturn ( new java . io . StringReader ( "\"20070906.091701\"<sp>\"egsperi\"<sp>\"\\ApplicationConfiguration\"<sp>\"\\main\\sit_r6a\\2\...
org . junit . Assert . assertEquals ( "vobs/projects/Server" 0 , 0 , changes . size ( ) )
testPatchNotAllowedAlert ( ) { org . apache . metron . indexing . dao . update . PatchRequest pr = new org . apache . metron . indexing . dao . update . PatchRequest ( ) ; java . util . Map < java . lang . String , java . lang . Object > patch = ( ( org . json . simple . JSONObject ) ( new org . json . simple . parser ...
org . junit . Assert . assertFalse ( dao . isPatchAllowed ( pr ) )
testAMImageScalerTrackerReturnsNullWhenNoThereIsNoDefaultImageScalerEnabled ( ) { org . osgi . framework . ServiceRegistration < com . liferay . adaptive . media . image . scaler . AMImageScaler > amImageScalerServiceRegistration = null ; try { _disableAMDefaultImageScaler ( ) ; com . liferay . adaptive . media . image...
org . junit . Assert . assertNull ( amImageScaler )
testGetContentLanguage ( ) { com . github . sardine . DavResource folder = new com . github . sardine . DavResourceTest . Builder ( "/test/path/" ) . inLanguage ( "en_us" ) . build ( ) ; "<AssertPlaceHolder>" ; } getContentLanguage ( ) { return this . props . contentLanguage ; }
org . junit . Assert . assertEquals ( "en_us" , folder . getContentLanguage ( ) )
testIsNotDisabled ( ) { when ( request . getAttribute ( com . day . cq . wcm . api . WCMMode . class . getName ( ) ) ) . thenReturn ( WCMMode . EDIT ) ; "<AssertPlaceHolder>" ; verify ( request , atLeast ( 1 ) ) . getAttribute ( com . day . cq . wcm . api . WCMMode . class . getName ( ) ) ; verifyNoMoreInteractions ( r...
org . junit . Assert . assertFalse ( com . adobe . acs . commons . util . ModeUtil . isDisabled ( request ) )
test_nonFinalBean_noList ( ) { org . joda . beans . sample . MutableListNonFinalBean test = org . joda . beans . sample . MutableListNonFinalBean . builder ( ) . build ( ) ; "<AssertPlaceHolder>" ; } getStrings ( ) { return strings ; }
org . junit . Assert . assertEquals ( test . getStrings ( ) , null )
testDoubleValuePosMaxValue ( ) { byte [ ] a = new byte [ ] { 0 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 8 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1...
org . junit . Assert . assertTrue ( ( aNumber == ( Double . MAX_VALUE ) ) )
escapeQueryAttributes_should_not_convert_overlapping_id_field_names ( ) { final java . lang . String convertedQuery = org . springframework . data . simpledb . query . QueryUtils . escapeQueryAttributes ( "select<sp>itemName()<sp>from<sp>customers" , "itemName" ) ; "<AssertPlaceHolder>" ; } escapeQueryAttributes ( java...
org . junit . Assert . assertThat ( convertedQuery , org . hamcrest . CoreMatchers . is ( "select<sp>itemName()<sp>from<sp>customers" ) )
testOpWithProperties ( ) { org . nuxeo . ecm . core . api . Blob input = new org . nuxeo . ecm . core . api . impl . blob . FileBlob ( getClass ( ) . getResourceAsStream ( org . nuxeo . ecm . platform . pdf . tests . PDFWatermarkingTextTest . PDF_PATH ) ) ; org . nuxeo . ecm . automation . OperationChain chain ; org . ...
org . junit . Assert . assertNotNull ( result )
testGetExtraCalculationFields ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "item" } ; doReturn ( expected ) . when ( expressionPropertyCore ) . getExtraCalculationFields ( metaData ) ; java . lang . String [ ] result = metaData . getExtraCalculationFields ( ) ; "<AssertPlaceHolder>" ; } getE...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
isNewReceiptRequiredTestADOrgID ( ) { final de . metas . inoutcandidate . model . I_M_ReceiptSchedule previousReceiptSchedule = createReceiptSchedule ( bpartner1 , warehouse1 , date , product1_wh1 , 10 ) ; final de . metas . inoutcandidate . model . I_M_ReceiptSchedule receiptSchedule = createReceiptSchedule ( bpartner...
org . junit . Assert . assertTrue ( isNewRequired )
existingDocumentNonTerminalFromUIDeprecatedIgnoringPage ( ) { org . xwiki . model . reference . DocumentReference documentReference = new org . xwiki . model . reference . DocumentReference ( "xwiki" , java . util . Arrays . asList ( "Main" ) , "WebHome" ) ; com . xpn . xwiki . doc . XWikiDocument document = mock ( com...
org . junit . Assert . assertNull ( result )
minimumWeight ( ) { long _size = 1 ; org . cache2k . Cache < java . lang . Integer , java . lang . Integer > c = builder ( org . cache2k . core . Integer . class , org . cache2k . core . Integer . class ) . eternal ( true ) . entryCapacity ( ( - 1 ) ) . weigher ( new org . cache2k . Weigher < java . lang . Integer , ja...
org . junit . Assert . assertEquals ( 2 , countEntriesViaIteration ( ) )
testThrottler ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . hdfs . HdfsConfiguration ( ) ; org . apache . hadoop . fs . FileSystem . setDefaultUri ( conf , "hdfs://localhost:0" ) ; long bandwidthPerSec = 1024 * 1024L ; final long TOTAL_BYTES = 6 * bandwidthPerSec ; long bytesToSe...
org . junit . Assert . assertTrue ( ( ( ( TOTAL_BYTES * 1000 ) / ( end - start ) ) <= bandwidthPerSec ) )