input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testExtractMonthDate ( ) { java . lang . String sqlText = ( "select<sp>d,<sp>EXTRACT(MONTH<sp>FROM<sp>d)<sp>as<sp>\"MONTH\"<sp>from<sp>" + ( com . splicemachine . derby . utils . SpliceDateFunctionsIT . tableWatcherI ) ) + "<sp>order<sp>by<sp>d" ; try ( com . splicemachine . derby . utils . ResultSet rs = methodWatcher...
org . junit . Assert . assertEquals ( ( ( "\n" + sqlText ) + "\n" ) , expected , TestUtils . FormattedResult . ResultFactory . toStringUnsorted ( rs ) )
testUserOnBusinessAdministratorGroups ( ) { java . util . List < java . lang . String > userGroups = new java . util . ArrayList ( ) ; userGroups . add ( "admin" ) ; when ( userGroupCallback . getGroupsForUser ( org . jbpm . services . task . commands . GetUserTaskCommandTest . USER_ID ) ) . thenReturn ( userGroups ) ;...
org . junit . Assert . assertEquals ( task , commandTask )
equals_equalInstances2_shouldBeTrue ( ) { com . vaadin . v7 . data . util . filter . Between b1 = new com . vaadin . v7 . data . util . filter . Between ( null , null , null ) ; com . vaadin . v7 . data . util . filter . Between b2 = new com . vaadin . v7 . data . util . filter . Between ( null , null , null ) ; "<Asse...
org . junit . Assert . assertTrue ( b1 . equals ( b2 ) )
type4_slaps ( ) { org . jnbis . api . model . Nist decoded = decode ( org . jnbis . AnsiReferencesTest . FILES [ 2 ] ) ; commonAssert ( decoded ) ; "<AssertPlaceHolder>" ; } getHiResGrayscaleFingerprints ( ) { return hiResolutionGrayscaleFingerprints ; }
org . junit . Assert . assertEquals ( 4 , decoded . getHiResGrayscaleFingerprints ( ) . size ( ) )
shouldNotMatchIfFilesMissing ( ) { net . ripe . rpki . commons . crypto . cms . manifest . ManifestCms mft = net . ripe . rpki . commons . crypto . cms . manifest . ManifestCmsTest . getRootManifestCms ( ) ; java . util . Map < java . lang . String , byte [ ] > emptyFiles = java . util . Collections . emptyMap ( ) ; "<...
org . junit . Assert . assertFalse ( mft . matchesFiles ( emptyFiles ) )
testGetStrokeMap ( ) { java . awt . Image image = new java . awt . image . BufferedImage ( 100 , 100 , java . awt . image . BufferedImage . TYPE_INT_RGB ) ; java . awt . Graphics2D g2d = ( ( java . awt . Graphics2D ) ( image . getGraphics ( ) ) ) ; org . openscience . cdk . renderer . visitor . AWTDrawVisitor visitor =...
org . junit . Assert . assertNotNull ( visitor . getStrokeMap ( ) )
deserializersTestsTree ( ) { final org . apache . tinkerpop . gremlin . tinkergraph . structure . TinkerGraph tg = org . apache . tinkerpop . gremlin . tinkergraph . structure . TinkerFactory . createModern ( ) ; final org . apache . tinkerpop . gremlin . structure . io . GraphWriter writer = getWriter ( defaultMapperV...
org . junit . Assert . assertEquals ( t , treeRead )
testIndexed ( ) { java . util . List < org . apache . lucene . index . Term > terms = com . google . common . collect . ImmutableList . copyOf ( new com . greplin . lucene . index . TermsForField ( this . reader , "notStored" ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( com . google . common . collect . ImmutableList . of ( new org . apache . lucene . index . Term ( "notStored" , "a" ) , new org . apache . lucene . index . Term ( "notStored" , "b" ) ) , terms )
allLegalIdsMayBeUsed ( ) { java . lang . String [ ] ids = new java . lang . String [ ] { "aaaaaaa" , "0000000" , "a1b2c3d" , "-------" , "_______" , "-_0-ad_" } ; int count = 0 ; for ( java . lang . String id : ids ) { net . fortytwo . smsn . brain . model . entities . Atom atom = topicGraph . createAtomWithProperties ...
org . junit . Assert . assertEquals ( ( "atom<sp>#" + ( i + 1 ) ) , atom . getTitle ( ) )
testExecutionExceptionNonNested ( ) { java . lang . Exception exIn = new org . eurekastreams . commons . exceptions . ExecutionException ( ) ; java . lang . Exception exOut = coreForbidNestingExceptionTest ( exIn ) ; "<AssertPlaceHolder>" ; } coreForbidNestingExceptionTest ( java . lang . Exception ) { org . eurekastre...
org . junit . Assert . assertSame ( exIn , exOut )
getCounter ( ) { net . centro . rtb . monitoringcenter . MetricCollector metricCollector = net . centro . rtb . monitoringcenter . MonitoringCenter . getMetricCollector ( net . centro . rtb . monitoringcenter . MonitoringCenterTest . class ) ; net . centro . rtb . monitoringcenter . Counter testCounter = new net . cent...
org . junit . Assert . assertEquals ( 0 , metricCollector . getCounter ( "testCounter" ) . getCount ( ) )
removeProductTest ( ) { System . out . print ( "-><sp>removeProduct()<sp>-<sp>" ) ; ua . com . alexcoffee . model . category . Category category = ua . com . alexcoffee . model . category . Category . getBuilder ( ) . build ( ) ; ua . com . alexcoffee . model . product . Product product = new ua . com . alexcoffee . mo...
org . junit . Assert . assertEquals ( category . getProducts ( ) . size ( ) , 10 )
testQueryListMultiple ( ) { authRule . createGrantAuthorization ( Resources . BATCH , "*" , "user" , Permissions . READ ) ; authRule . createGrantAuthorization ( Resources . BATCH , batch1 . getId ( ) , "user" , Permissions . READ ) ; authRule . enableAuthorization ( "user" ) ; java . util . List < org . camunda . bpm ...
org . junit . Assert . assertEquals ( 2 , batches . size ( ) )
service19PutWithHeaderApplicationJsonContentTypeAndStringBodyWithNullBody ( ) { final com . azure . common . entities . HttpBinJSON result = createService ( com . azure . common . implementation . RestProxyTests . Service19 . class ) . putWithHeaderApplicationJsonContentTypeAndStringBody ( null ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertEquals ( "" , result . data )
shouldRejectVersionMisMatchIPv4 ( ) { bli . setIpVersion ( IpVersion . IPV6 ) ; bli . setCidrBlock ( "192.168.3.51/24" ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = bv . validate ( bli , org . openstack . atlas . api . mgmt . validation . validators . POST ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertFalse ( resultMessage ( result , org . openstack . atlas . api . mgmt . validation . validators . POST ) , result . passedValidation ( ) )
testSampleIndexDBAdaptor ( ) { java . util . List < java . util . List < org . opencb . biodata . models . core . Region > > regionLists = java . util . Arrays . asList ( null , java . util . Arrays . asList ( new org . opencb . biodata . models . core . Region ( "1" , 1000 , 300000 ) ) ) ; for ( java . util . List < o...
org . junit . Assert . assertEquals ( expectedCount , actualCount )
testEqualsHashCodeConsistency ( ) { org . pentaho . di . cluster . SlaveServer slave = new org . pentaho . di . cluster . SlaveServer ( ) ; slave . setName ( "slave" ) ; org . pentaho . di . utils . TestUtils . checkEqualsHashCodeConsistency ( slave , slave ) ; org . pentaho . di . cluster . SlaveServer slaveSame = new...
org . junit . Assert . assertTrue ( slave . equals ( slaveSame ) )
testSubsituteSql ( ) { java . util . Map < java . lang . String , java . lang . String > variables = new java . util . HashMap ( ) ; variables . put ( "level" , "4" ) ; variables . put ( "id" , "abc" ) ; java . lang . String sql = "select<sp>*<sp>from<sp>datavalue<sp>where<sp>level=${level}<sp>and<sp>id='${id}'" ; java...
org . junit . Assert . assertEquals ( expected , actual )
testCipherPerf ( ) { byte [ ] keyBytes = new java . security . SecureRandom ( ) . generateSeed ( 16 ) ; javax . crypto . spec . SecretKeySpec key = new javax . crypto . spec . SecretKeySpec ( keyBytes , "AES" ) ; javax . crypto . Cipher encCipher = javax . crypto . Cipher . getInstance ( "AES/ECB/PKCS5Padding" ) ; java...
org . junit . Assert . assertEquals ( expected , dec . toString ( ) )
convertToShortNull ( ) { java . lang . Short out = converter . toShort ( null ) ; "<AssertPlaceHolder>" ; } toShort ( java . lang . Long ) { if ( value == null ) { return null ; } if ( ( value > ( Short . MAX_VALUE ) ) || ( value < ( Short . MIN_VALUE ) ) ) { throw new io . atlasmap . api . AtlasConversionException ( j...
org . junit . Assert . assertNull ( out )
testPlainCurveKeys ( ) { byte [ ] [ ] serverKeyPair = new zmq . io . mechanism . curve . Curve ( ) . keypair ( ) ; byte [ ] serverPublicKey = serverKeyPair [ 0 ] ; byte [ ] serverSecretKey = serverKeyPair [ 1 ] ; byte [ ] [ ] clientKeyPair = new zmq . io . mechanism . curve . Curve ( ) . keypair ( ) ; byte [ ] clientPu...
org . junit . Assert . assertThat ( recv , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( testBytes ) ) )
testSerialization ( ) { org . jfree . chart . urls . StandardCategoryURLGenerator g1 = new org . jfree . chart . urls . StandardCategoryURLGenerator ( "index.html?" ) ; org . jfree . chart . urls . StandardCategoryURLGenerator g2 = ( ( org . jfree . chart . urls . StandardCategoryURLGenerator ) ( org . jfree . chart . ...
org . junit . Assert . assertEquals ( g1 , g2 )
testGetColumnRowVector ( ) { org . nd4j . linalg . api . ndarray . INDArray arr = org . nd4j . linalg . factory . Nd4j . create ( 1 , 4 ) ; org . nd4j . linalg . api . ndarray . INDArray col = arr . getColumn ( 0 ) ; System . out . println ( org . nd4j . linalg . Arrays . toString ( col . shape ( ) ) ) ; "<AssertPlaceH...
org . junit . Assert . assertArrayEquals ( new long [ ] { 1 , 1 } , col . shape ( ) )
download ( ) { await ( io . datakernel . csp . ChannelSupplier . of ( wrapUtf8 ( io . global . fs . GlobalFsTest . SIMPLE_CONTENT ) ) . streamTo ( await ( firstAliceAdapter . upload ( io . global . fs . GlobalFsTest . FILENAME ) ) ) ) ; byte [ ] data = await ( await ( firstAliceAdapter . download ( io . global . fs . G...
org . junit . Assert . assertArrayEquals ( io . global . fs . GlobalFsTest . SIMPLE_CONTENT . getBytes ( io . global . fs . UTF_8 ) , data )
testOldGunMethodCompatibility ( ) { pl . jgwozdz . brickcommand . brick . ev3 . CounterSequence . getDefault ( ) . reset ( ) ; byte [ ] newMessage = new pl . jgwozdz . brickcommand . brick . ev3 . TextEV3Command ( "Mailbox<sp>1" , "This<sp>is<sp>a<sp>message" ) . getAllBytes ( ) ; byte [ ] oldMessage = new pl . jgwozdz...
org . junit . Assert . assertArrayEquals ( oldMessage , newMessage )
testLogin ( ) { com . iluwatar . pageobject . pages . AlbumListPage albumListPage = loginPage . enterUsername ( "admin" ) . enterPassword ( "password" ) . login ( ) ; albumListPage . navigateToPage ( ) ; "<AssertPlaceHolder>" ; } isAt ( ) { return "Album<sp>Page" . equals ( page . getTitleText ( ) ) ; }
org . junit . Assert . assertTrue ( albumListPage . isAt ( ) )
deveObterValorUnitarioTributavelComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . math . BigDecimal valorUnitarioTributavel = new java . math . B...
org . junit . Assert . assertEquals ( "9999999999.9999999999" , produto . getValorUnitarioTributavel ( ) )
shouldAutotypeIntegerProperties ( ) { final org . apache . tinkerpop . gremlin . structure . Vertex v = graph . addVertex ( ) ; v . property ( VertexProperty . Cardinality . single , "integer" , 33 ) ; final java . lang . Integer age = v . value ( "integer" ) ; "<AssertPlaceHolder>" ; } value ( java . lang . String ) {...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 33 ) , age )
test ( ) { com . querydsl . core . types . dsl . NumberExpression < java . math . BigDecimal > sum = QMoney . money . sum ( ) ; "<AssertPlaceHolder>" ; } sum ( ) { query ( ) . from ( cat ) . select ( cat . kittens . size ( ) . sum ( ) ) . parse ( ) ; }
org . junit . Assert . assertNotNull ( sum )
testQueryUsingNameAndStartAndEndWithLTOperatorNoMatch ( ) { org . openhab . core . persistence . FilterCriteria criteria = new org . openhab . core . persistence . FilterCriteria ( ) ; criteria . setOperator ( Operator . LT ) ; criteria . setState ( getFirstItemState ( ) ) ; criteria . setItemName ( getItemName ( ) ) ;...
org . junit . Assert . assertFalse ( iterator . hasNext ( ) )
testSyntacticVariations ( ) { org . apache . commons . jexl3 . JexlScript script = org . apache . commons . jexl3 . JEXL . createScript ( "sum(TOTAL)<sp>-<sp>partial.sum()<sp>+<sp>partial['sub'].avg()<sp>-<sp>sum(partial.sub)" ) ; java . util . Set < java . util . List < java . lang . String > > vars = script . getVari...
org . junit . Assert . assertTrue ( ( ( vars . size ( ) ) == 3 ) )
testTypeDescriptorsIterables ( ) { org . apache . beam . sdk . values . TypeDescriptor < java . lang . Iterable < java . lang . String > > descriptor = org . apache . beam . sdk . values . TypeDescriptors . iterables ( org . apache . beam . sdk . values . TypeDescriptors . strings ( ) ) ; "<AssertPlaceHolder>" ; } stri...
org . junit . Assert . assertEquals ( descriptor , new org . apache . beam . sdk . values . TypeDescriptor < java . lang . Iterable < java . lang . String > > ( ) { } )
testGetEffectiveMinorVersion ( ) { final com . ibm . ws . container . service . metadata . MetaDataService mds = context . mock ( com . ibm . ws . container . service . metadata . MetaDataService . class ) ; final com . ibm . websphere . csi . J2EENameFactory jnf = context . mock ( com . ibm . websphere . csi . J2EENam...
org . junit . Assert . assertTrue ( caughtUnsupportedOperationException )
testGetStat ( ) { try { me . haosdent . cgroup . subsystem . MemoryTest . one . getMemory ( ) . getPhysicalUsage ( ) ; } catch ( java . io . IOException e ) { me . haosdent . cgroup . subsystem . MemoryTest . LOG . error ( "Set<sp>usage_in_bytes<sp>failed." , e ) ; "<AssertPlaceHolder>" ; } } getPhysicalUsage ( ) { jav...
org . junit . Assert . assertTrue ( false )
shouldCountCustomMethodWithBefore ( ) { java . lang . String documentId = randomNumeric ( 5 ) ; org . springframework . data . elasticsearch . entities . SampleEntity sampleEntity = new org . springframework . data . elasticsearch . entities . SampleEntity ( ) ; sampleEntity . setId ( documentId ) ; sampleEntity . setT...
org . junit . Assert . assertThat ( count , is ( equalTo ( 1L ) ) )
readBean_hasBindings_singleEventOnLoad ( ) { binder . forField ( nameField ) . bind ( Person :: getFirstName , Person :: setFirstName ) ; binder . addStatusChangeListener ( this :: statusChanged ) ; "<AssertPlaceHolder>" ; binder . readBean ( item ) ; verifyEvent ( ) ; } get ( ) { return com . vaadin . flow . dom . imp...
org . junit . Assert . assertNull ( event . get ( ) )
testGetFallback ( ) { org . orbisgis . legend . thematic . recode . RecodedPoint ra = getRecodedPoint ( ) ; org . orbisgis . legend . thematic . PointParameters fb = ra . getFallbackParameters ( ) ; org . orbisgis . legend . thematic . PointParameters t = new org . orbisgis . legend . thematic . PointParameters ( new o...
org . junit . Assert . assertTrue ( t . equals ( fb ) )
whenEvenNumberTwoInStreamThenResultTrue ( ) { vkaretko . EvenNumber number = new vkaretko . EvenNumber ( ) ; try ( java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( "2" . getBytes ( ) ) ) { "<AssertPlaceHolder>" ; } catch ( java . io . IOException ioe ) { ioe . printStackTrace ( ) ; } } i...
org . junit . Assert . assertThat ( number . isNumber ( stream ) , org . hamcrest . core . Is . is ( true ) )
testGetPartition_configPartitionsChanged ( ) { java . util . Map < java . lang . String , java . util . List < com . taobao . metamorphosis . cluster . Partition > > map = new java . util . HashMap < java . lang . String , java . util . List < com . taobao . metamorphosis . cluster . Partition > > ( ) ; map . put ( com...
org . junit . Assert . assertEquals ( new com . taobao . metamorphosis . cluster . Partition ( "0-0" ) , partition )
xmlFileWellFormedWithFailIfNoFileTest ( ) { java . lang . String xmlFilePath = getClass ( ) . getResource ( "xml-sample.xml" ) . getPath ( ) ; boolean wellFormed = org . pentaho . di . core . row . ValueDataUtil . isXMLFileWellFormed ( new org . pentaho . di . core . row . value . ValueMetaString ( ) , xmlFilePath , tr...
org . junit . Assert . assertTrue ( wellFormed )
testRequestWithInvalidAuthorization ( ) { javax . servlet . http . HttpServletRequest request = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletRequest . class ) ; javax . servlet . http . HttpServletResponse response = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletResponse ....
org . junit . Assert . assertNull ( handler . authenticate ( request , response ) )
testSetTextAndSelection ( ) { org . eclipse . rap . rwt . testfixture . internal . Fixture . fakePhase ( PhaseId . PROCESS_ACTION ) ; combo . add ( "test" ) ; combo . add ( "test1" ) ; combo . add ( "test2" ) ; combo . addVerifyListener ( new org . eclipse . swt . events . VerifyListener ( ) { @ org . eclipse . swt . w...
org . junit . Assert . assertEquals ( 2 , combo . getSelectionIndex ( ) )
rootNodeShouldHaveProperType ( ) { javax . jcr . Node rootNode = session . getRootNode ( ) ; javax . jcr . nodetype . NodeType rootNodePrimaryType = rootNode . getPrimaryNodeType ( ) ; javax . jcr . nodetype . NodeType dnaRootType = session . nodeTypeManager ( ) . getNodeType ( ModeShapeLexicon . ROOT ) ; "<AssertPlace...
org . junit . Assert . assertThat ( rootNodePrimaryType . getName ( ) , org . hamcrest . core . Is . is ( dnaRootType . getName ( ) ) )
testEquivalence ( ) { byte [ ] a = new byte [ ] { 0 , 3 , 4 , 42 , 2 , 2 } ; byte [ ] b = new byte [ ] { 3 , 4 , 42 } ; org . apache . kylin . common . hll . HyperLogLogPlusCounter ha = new org . apache . kylin . common . hll . HyperLogLogPlusCounter ( ) ; org . apache . kylin . common . hll . HyperLogLogPlusCounter hb...
org . junit . Assert . assertTrue ( ( ( ha . getCountEstimate ( ) ) == ( hb . getCountEstimate ( ) ) ) )
testSerializeDeserialize ( ) { final org . eclipse . rdf4j . model . IRI smartUri = org . apache . rya . indexing . smarturi . SmartUriAdapter . serializeUriEntity ( org . apache . rya . indexing . mongo . MongoDbSmartUriIT . BOB_ENTITY ) ; final org . apache . rya . indexing . entity . model . Entity resultEntity = or...
org . junit . Assert . assertEquals ( org . apache . rya . indexing . mongo . MongoDbSmartUriIT . BOB_ENTITY . getSubject ( ) , resultEntity . getSubject ( ) )
testSpecificSerializeFromClassSeveralTimes ( ) { final org . apache . flink . api . java . tuple . Tuple3 < java . lang . Class < ? extends org . apache . avro . specific . SpecificRecord > , org . apache . avro . specific . SpecificRecord , org . apache . flink . types . Row > testData = org . apache . flink . formats...
org . junit . Assert . assertEquals ( testData . f2 , actual )
testSqlgGraphVertices ( ) { java . util . List < org . umlg . sqlg . structure . RecordId > recordIds = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { org . apache . tinkerpop . gremlin . structure . Vertex v = this . sqlgGraph . addVertex ( T . label , "A" ) ; recordIds . add ( ( ( org . umlg . ...
org . junit . Assert . assertEquals ( 10 , result . size ( ) )
shouldInitializeTrafficSenderAndUpdateRCVectorsMultipleTimes ( ) { eu . smartenit . sbox . main . NetworkTrafficSenderTest . logger . info ( "--Testing<sp>traffic<sp>sender<sp>initialize.<sp>--" ) ; eu . smartenit . sbox . ntm . NetworkTrafficManager ntm = new eu . smartenit . sbox . ntm . NetworkTrafficManager ( ) ; n...
org . junit . Assert . assertTrue ( true )
testBuild ( ) { java . lang . String expectedAwql = "SELECT<sp>CampaignId,<sp>CampaignName<sp>FROM<sp>CAMPAIGN_PERFORMANCE_REPORT<sp>WHERE<sp>" + "CampaignStatus<sp>=<sp>\"ENABLED\"<sp>DURING<sp>20170101,20170131" ; com . google . api . ads . adwords . lib . utils . ReportQueryInterface reportQuery = new com . google ....
org . junit . Assert . assertEquals ( expectedAwql , reportQuery . toString ( ) )
testEmptyLine ( ) { replay ( lineProcessorsMock ) ; fontLoader . load ( fontRenderer , null , createInputStream ( "\n" . getBytes ( "ISO-8859-1" ) ) , "somename.fnt" , 0 , 0 , "" ) ; "<AssertPlaceHolder>" ; } createInputStream ( byte [ ] ) { java . io . InputStream in = new java . io . ByteArrayInputStream ( data ) { @...
org . junit . Assert . assertTrue ( closeCalled )
testMarshalEmptyTree ( ) { org . apache . directory . server . core . avltree . AvlTreeMarshaller < java . lang . Integer > treeMarshaller = createTreeMarshaller ( ) ; byte [ ] bites = treeMarshaller . serialize ( new org . apache . directory . server . core . avltree . AvlTreeImpl < java . lang . Integer > ( org . apa...
org . junit . Assert . assertNotNull ( tree )
removeIPv4 ( ) { org . opennaas . extensions . router . capability . ip . IIPCapability ipCapability = ( ( org . opennaas . extensions . router . capability . ip . IIPCapability ) ( routerResource . getCapability ( org . opennaas . itests . helpers . InitializerTestHelper . getCapabilityInformation ( TestsConstants . I...
org . junit . Assert . assertTrue ( queueResponse . isOk ( ) )
shouldAddPITToTheBootClassPath ( ) { final java . lang . String actual = getGeneratedManifestAttribute ( JarCreatingJarFinder . BOOT_CLASSPATH ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . g...
org . junit . Assert . assertTrue ( ( ! ( actual . equals ( "" ) ) ) )
testIsBuildingFalseSomethingElseIs ( ) { com . sonymobile . tools . gerrit . gerritevents . dto . events . PatchsetCreated event = com . sonyericsson . hudson . plugins . gerrit . trigger . mock . Setup . createPatchsetCreated ( ) ; com . sonyericsson . hudson . plugins . gerrit . trigger . gerritnotifier . model . Bui...
org . junit . Assert . assertFalse ( instance . isBuilding ( event ) )
testEmptyCommands ( ) { java . io . File tmpRoot = com . addthis . basis . util . LessFiles . createTempDir ( ) ; java . lang . System . setProperty ( "SPAWN_DATA_DIR" , ( tmpRoot + "/tmp/spawn/data" ) ) ; java . lang . System . setProperty ( "SPAWN_LOG_DIR" , ( tmpRoot + "/tmp/spawn/log/events" ) ) ; try ( com . addth...
org . junit . Assert . assertEquals ( 0 , spawn . getJobCommandManager ( ) . size ( ) )
testGetBoolean02 ( ) { org . dresdenocl . modelinstancetype . types . IModelInstanceBoolean modelInstanceBoolean ; modelInstanceBoolean = org . dresdenocl . modelinstancetype . types . base . BasisJavaModelInstanceFactory . createModelInstanceBoolean ( false ) ; "<AssertPlaceHolder>" ; } getBoolean ( ) { return boolean...
org . junit . Assert . assertFalse ( modelInstanceBoolean . getBoolean ( ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . wiki . model . WikiPageResource . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . liferay...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
test_total_size ( ) { int SIZE = 100 ; com . philvarner . clamavj . test . ArbitraryInputStream is = new com . philvarner . clamavj . test . ArbitraryInputStream ( SIZE ) ; is . read ( new byte [ SIZE ] , 0 , SIZE ) ; "<AssertPlaceHolder>" ; } read ( byte [ ] , int , int ) { if ( ( bytes . length ) < ( offset + length ...
org . junit . Assert . assertEquals ( ( - 1 ) , is . read ( new byte [ SIZE ] , 0 , 1 ) )
testWithoutHtmlStylesheetOption ( ) { java . nio . file . Path htmlReportPath = java . nio . file . Paths . get ( java . lang . System . getProperty ( "user.dir" ) , "target" , ( ( japicmp . output . xml . XmlOutputGeneratorTest . class . getSimpleName ( ) ) + "_without.html" ) ) ; japicmp . config . Options options = ...
org . junit . Assert . assertThat ( foundStyleSheet , org . hamcrest . core . Is . is ( true ) )
testMessageBuildersAreAddedWhenUsingFactoryMethodsAll ( ) { messages . info ( "This<sp>is<sp>a<sp>%s" , "message" ) ; messages . error ( "This<sp>is<sp>a<sp>message" ) ; messages . error ( "This<sp>is<sp>a<sp>%s" , "message" ) ; messages . fatal ( "This<sp>is<sp>a<sp>message" ) ; messages . fatal ( "This<sp>is<sp>a<sp>...
org . junit . Assert . assertEquals ( 7 , messages . getAll ( ) . size ( ) )
getAllQueryUrl ( ) { org . hisp . dhis . query . Query query = queryService . getQueryFromUrl ( org . hisp . dhis . dataelement . DataElement . class , com . google . common . collect . Lists . < java . lang . String > newArrayList ( ) , com . google . common . collect . Lists . < org . hisp . dhis . query . Order > ne...
org . junit . Assert . assertEquals ( 6 , queryService . query ( query ) . size ( ) )
entry_hashCodeForNullKeyAndValue ( ) { com . gs . collections . api . map . MutableMap < java . lang . Integer , java . lang . String > map = this . newMapWithKeyValue ( null , null ) ; Map . Entry < java . lang . Integer , java . lang . String > entry = com . gs . collections . impl . utility . Iterate . getFirst ( ma...
org . junit . Assert . assertEquals ( 0 , entry . hashCode ( ) )
testZoekIdBijAnummerMeerdereGevonden ( ) { final java . lang . Integer persoonId = persoonRepository . zoekIdBijAnummer ( new nl . bzk . brp . model . algemeen . attribuuttype . kern . AdministratienummerAttribuut ( 999999999L ) ) ; "<AssertPlaceHolder>" ; } zoekIdBijAnummer ( nl . bzk . brp . model . algemeen . attrib...
org . junit . Assert . assertNull ( persoonId )
testMaakentityConvertorVoorvoegsel ( ) { nl . bzk . migratiebrp . test . brpnaarlo3 . adapter . ConverterContext ctx = createContext ( nl . bzk . migratiebrp . test . brpnaarlo3 . adapter . entity . IstStapelVoorkomenConverterTest . MINIMAAL ) ; converter . convertInhoudelijk ( ctx , IstStapelVoorkomenConverter . HEADE...
org . junit . Assert . assertEquals ( voorvoegsel , stapelVoorkomen . getVoorvoegsel ( ) )
testCallerWithHigherMinorVersionIncompatible ( ) { joynr . types . Version caller = new joynr . types . Version ( 1 , 2 ) ; joynr . types . Version provider = new joynr . types . Version ( 1 , 0 ) ; boolean result = subject . check ( caller , provider ) ; "<AssertPlaceHolder>" ; } check ( joynr . types . Version , joyn...
org . junit . Assert . assertFalse ( result )
shouldReturnBoundaryForOpenBrace ( ) { edu . stanford . bmir . protege . web . shared . entity . EntityNameCharType type = edu . stanford . bmir . protege . web . shared . entity . EntityNameCharType . getType ( 0 , '{' , 1 ) ; "<AssertPlaceHolder>" ; } getType ( int , char , int ) { if ( java . lang . Character . isUp...
org . junit . Assert . assertEquals ( EntityNameCharType . BOUNDARY , type )
testSetDotSizeNumListKO ( ) { final java . util . List < java . util . Optional < java . lang . Double > > vals = java . util . Arrays . asList ( java . util . Optional . of ( arr1 . getDotSizeNum ( ) ) , java . util . Optional . of ( arr2 . getDotSizeNum ( ) ) ) ; group . setDotSizeNumList ( null ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( vals , java . util . Arrays . asList ( java . util . Optional . of ( arr1 . getDotSizeNum ( ) ) , java . util . Optional . of ( arr2 . getDotSizeNum ( ) ) ) )
defaultConstructorTest ( ) { org . openscience . cdk . group . BondDiscretePartitionRefiner refiner = new org . openscience . cdk . group . BondDiscretePartitionRefiner ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( refiner )
testCloneWithDefType ( ) { org . springframework . data . solr . core . query . Query source = new org . springframework . data . solr . core . query . SimpleQuery ( new org . springframework . data . solr . core . query . Criteria ( "field_1" ) . is ( "value_1" ) ) ; source . setDefType ( "defType" ) ; org . springfra...
org . junit . Assert . assertEquals ( source . getDefType ( ) , destination . getDefType ( ) )
testEmptyString ( ) { "<AssertPlaceHolder>" ; } unescape ( java . lang . String ) { boolean escaping = false ; java . lang . StringBuilder newString = new java . lang . StringBuilder ( ) ; for ( char c : escaped . toCharArray ( ) ) { if ( ! escaping ) { if ( c == ( py4j . StringUtil . ESCAPE_CHAR ) ) { escaping = true ...
org . junit . Assert . assertEquals ( "" , py4j . StringUtil . unescape ( "" ) )
onCheckRunnable ( ) { android . widget . CheckBox checkbox = new android . widget . CheckBox ( new android . app . Activity ( ) ) ; checkbox . setId ( android . R . id . button1 ) ; com . github . kevinsawicki . wishlist . ViewFinder finder = new com . github . kevinsawicki . wishlist . ViewFinder ( checkbox ) ; final ...
org . junit . Assert . assertTrue ( run . get ( ) )
test_a$_ax ( ) { org . antlr . v4 . runtime . atn . PredictionContext a1 = a ( false ) ; org . antlr . v4 . runtime . atn . PredictionContext x = x ( false ) ; org . antlr . v4 . runtime . atn . PredictionContext a2 = createSingleton ( x , 1 ) ; org . antlr . v4 . runtime . atn . PredictionContext r = contextCache . jo...
org . junit . Assert . assertEquals ( expecting , org . antlr . v4 . test . tool . TestGraphNodes . toDOTString ( r ) )
testBatchWriteException ( ) { java . util . List < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass > objs = new java . util . ArrayList < com . amazonaws . mobileconnectors . dynamodbv2 . dynamodbmapper . NumberSetAttributeClass > ( ) ; for ( int i = 0 ; i < 40 ; i ++ ) { com ...
org . junit . Assert . assertEquals ( obj , loaded )
non_character_type_returns_no_specimen ( ) { java . lang . Object result = this . characterGenerator . create ( com . flextrade . jfixture . builders . Integer . class , null ) ; "<AssertPlaceHolder>" ; } create ( java . lang . Object , com . flextrade . jfixture . SpecimenContext ) { if ( ! ( request instanceof com . ...
org . junit . Assert . assertEquals ( new com . flextrade . jfixture . NoSpecimen ( ) , result )
testSubset ( ) { com . tek271 . reverseProxy . utils . PropertiesFile propertiesFile = new com . tek271 . reverseProxy . utils . PropertiesFile ( com . tek271 . reverseProxy . utils . PropertiesFileTest . FILE ) ; com . tek271 . reverseProxy . utils . PropertiesFile subset = propertiesFile . subset ( "mapping" ) ; "<As...
org . junit . Assert . assertEquals ( 5 , subset . getProperties ( ) . size ( ) )
shouldMakeRecurrence ( ) { com . calendarfx . model . Entry < java . lang . String > recurrence = new com . calendarfx . model . Entry ( ) ; recurrence . getProperties ( ) . put ( "com.calendarfx.recurrence.source" , entry ) ; "<AssertPlaceHolder>" ; } isRecurrence ( ) { return ( recurrence ) == null ? _recurrence : re...
org . junit . Assert . assertThat ( recurrence . isRecurrence ( ) , org . hamcrest . Matchers . is ( true ) )
testEqualArtifacts ( ) { org . eclipse . tycho . core . osgitools . targetplatform . DefaultDependencyArtifacts tp = new org . eclipse . tycho . core . osgitools . targetplatform . DefaultDependencyArtifacts ( ) ; org . eclipse . tycho . ArtifactKey key = new org . eclipse . tycho . DefaultArtifactKey ( "type" , "id" ,...
org . junit . Assert . assertEquals ( 1 , tp . getArtifacts ( ) . size ( ) )
testGetResourceFileWithTrailingSlash ( ) { org . apache . catalina . WebResource webResource = resourceRoot . getResource ( ( ( getMount ( ) ) + "/d1/d1-f1.txt/" ) ) ; "<AssertPlaceHolder>" ; } exists ( ) { return war . exists ( ) ; }
org . junit . Assert . assertFalse ( webResource . exists ( ) )
testMatchExactlyStatusErr ( ) { queriesString = "type=node&enabled=true&status=established&path=node_id=node01,port_id=port01" ; target = new org . o3project . odenos . core . component . network . flow . query . BasicFlowQuery ( queriesString ) ; target . parse ( ) ; java . util . List < org . o3project . odenos . cor...
org . junit . Assert . assertThat ( target . matchExactly ( flow ) , org . hamcrest . CoreMatchers . is ( false ) )
testEnableResponseBuffering ( ) { boolean result ; result = writer . enableResponseBuffering ( ) ; "<AssertPlaceHolder>" ; } enableResponseBuffering ( ) { return false ; }
org . junit . Assert . assertFalse ( result )
testIsSelected_Throws_Exception_When_COM_Returns_One ( ) { when ( rawPattern . getCurrentIsSelected ( any ( ) ) ) . thenReturn ( 1 ) ; mmarquee . automation . pattern . SelectionItem item = new mmarquee . automation . pattern . SelectionItem ( element ) ; item . rawPattern = rawPattern ; boolean selected = item . isSel...
org . junit . Assert . assertFalse ( selected )
testBadHMACExactLength ( ) { byte [ ] plaintext = org . cryptonode . jncryptor . AES256JNCryptorInputStreamTest . getRandomBytes ( 256 ) ; final java . lang . String password = "Testing1234" ; org . cryptonode . jncryptor . JNCryptor cryptor = new org . cryptonode . jncryptor . AES256JNCryptor ( ) ; byte [ ] data = cry...
org . junit . Assert . assertEquals ( result . length , read )
testInitiate_IAtomContainerSet_ArrayList_ArrayList ( ) { org . openscience . cdk . reaction . IReactionMechanism mechanism = new org . openscience . cdk . reaction . mechanism . HeterolyticCleavageMechanism ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( mechanism )
chain6 ( ) { final java . util . List < java . lang . Comparable > result = com . github . underscore . U . chain ( com . github . underscore . U . chain ( com . github . underscore . U . class . getDeclaredMethods ( ) ) . reduce ( new com . github . underscore . BiFunction < java . util . List < java . lang . String >...
org . junit . Assert . assertEquals ( 4 , result . size ( ) )
testFindUsageStatistics_inexistingTarget ( ) { java . util . List < net . roboconf . core . model . runtime . TargetUsageItem > items = this . resource . findUsageStatistics ( "4" ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . map . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , items . size ( ) )
testPropSpecOnPatternWithThis ( ) { java . lang . String rule = "package<sp>org.drools.compiler.integrationtests\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( "declare<sp>A\n" + "<sp>@propertyReactive\n" ) + "B" 3 ) + "B" 6 ) + "B" 7 ) + "<sp>@propertyReactive\n" ) + "<sp>a<sp>:<sp>A\n" ) + "B" 6 ) + "rule<sp>R1\n" ) + "when\n" ) +...
org . junit . Assert . assertEquals ( 1 , rules )
suggestAsJSONReturnsEmptyListOnExceptions ( ) { when ( this . query . execute ( ) ) . thenThrow ( new org . xwiki . query . QueryException ( "" , this . query , null ) ) ; org . json . JSONObject response = new org . json . JSONObject ( this . component . suggestAsJSON ( "dOe" , 200 , "view" , org . phenotips . data . ...
org . junit . Assert . assertEquals ( 0 , suggestions . length ( ) )
testIssue1142 ( ) { final int [ ] res = new int [ ] { 0 } ; org . robovm . rt . lambdas . Issue1142Test . foo ( ( java . lang . Integer i ) -> res [ 0 ] = i ) ; "<AssertPlaceHolder>" ; } foo ( int ) { super . foo ( i ) ; }
org . junit . Assert . assertEquals ( 10 , res [ 0 ] )
testMultifactorAddMatchingCredentials ( ) { final org . jasig . cas . authentication . principal . Principal firstPrincipal = new org . jasig . cas . authentication . principal . DefaultPrincipalFactory ( ) . createPrincipal ( "casuser" ) ; final org . jasig . cas . authentication . Authentication firstAuthentication =...
org . junit . Assert . assertEquals ( 2 , c . countChainedAuthentications ( ) )
test ( ) { System . out . println ( "---------Erstelle<sp>Job" ) ; org . kapott . hbci . GV . HBCIJob job = handler . newJob ( "value" 4 ) ; org . kapott . hbci . structures . Konto acc = new org . kapott . hbci . structures . Konto ( ) ; acc . blz = params . getProperty ( "value" 5 ) ; acc . number = params . getPrope...
org . junit . Assert . assertEquals ( "---------Erstelle<sp>Job" 0 , true , res . isOK ( ) )
shouldEncryptAndDecrypt ( ) { doHandShake ( ) ; network . thunder . core . etc . RandomDataMessage testMessage = new network . thunder . core . etc . RandomDataMessage ( ) ; channel1 . writeOutbound ( testMessage ) ; channel2 . writeInbound ( channel1 . readOutbound ( ) ) ; network . thunder . core . etc . RandomDataMe...
org . junit . Assert . assertEquals ( decryptedMessage , testMessage )
convert200MBValue ( ) { java . lang . String newSize = org . eclipse . che . ide . util . Bytes . toHumanSize ( "200MB" ) ; "<AssertPlaceHolder>" ; } toHumanSize ( java . lang . String ) { return org . eclipse . che . ide . util . Bytes . toHumanSize ( org . eclipse . che . ide . util . Bytes . fromHumanSize ( humanSiz...
org . junit . Assert . assertEquals ( "200MB" , newSize )
whenLongPolling_ShouldObserveItemsFromVisibilityRules ( ) { new java . lang . Thread ( ( ) -> { try { java . lang . Thread . sleep ( org . eclipse . smarthome . io . rest . sitemap . internal . SitemapResourceTest . STATE_UPDATE_WAIT_TIME ) ; visibilityRuleItem . setState ( new org . eclipse . smarthome . core . librar...
org . junit . Assert . assertThat ( pageDTO . timeout , org . hamcrest . CoreMatchers . is ( false ) )
updateClassifierInvalidACL ( ) { when ( accessListEntries . getAce ( ) ) . thenReturn ( java . util . Collections . emptyList ( ) ) ; java . util . List < org . opendaylight . sfc . util . openflow . writer . FlowDetails > flowList = theUpdateProcessor . processClassifier ( sffClassifier , acl , newRsp ) ; "<AssertPlac...
org . junit . Assert . assertTrue ( flowList . isEmpty ( ) )
testCompareName ( ) { int x = new net . rrm . ehour . sort . ProjectAssignmentComparator ( ProjectAssignmentComparator . ASSIGNMENT_COMPARE_NAME ) . compare ( net . rrm . ehour . domain . ProjectAssignmentObjectMother . createProjectAssignment ( 2 ) , net . rrm . ehour . domain . ProjectAssignmentObjectMother . createP...
org . junit . Assert . assertTrue ( ( x > 0 ) )
testStrategies ( ) { eu . verdelhan . ta4j . indicators . statistics . PeriodicalGrowthRateIndicator gri = new eu . verdelhan . ta4j . indicators . statistics . PeriodicalGrowthRateIndicator ( this . closePrice , 5 ) ; eu . verdelhan . ta4j . Rule buyingRule = new eu . verdelhan . ta4j . trading . rules . CrossedUpIndi...
org . junit . Assert . assertEquals ( expResult , result )
goAway_tooManyPings ( ) { final java . util . concurrent . atomic . AtomicBoolean run = new java . util . concurrent . atomic . AtomicBoolean ( ) ; tooManyPingsRunnable = new java . lang . Runnable ( ) { @ io . grpc . okhttp . Override public void run ( ) { run . set ( true ) ; } } ; initTransport ( ) ; frameHandler ( ...
org . junit . Assert . assertTrue ( run . get ( ) )
test_validDomains ( ) { "<AssertPlaceHolder>" ; } isValidDomainName ( java . lang . String ) { java . util . regex . Pattern p = java . util . regex . Pattern . compile ( fr . treeptik . cloudunit . utils . DomainUtils . DOMAIN_NAME_PATTERN ) ; java . util . regex . Matcher m = p . matcher ( domainName ) ; return m . m...
org . junit . Assert . assertEquals ( expected , fr . treeptik . cloudunit . utils . DomainUtils . isValidDomainName ( domain ) )
empty ( ) { com . sap . prd . mobile . ios . mios . xcodeprojreader . BuildConfigurationList configList = new com . sap . prd . mobile . ios . mios . xcodeprojreader . BuildConfigurationList ( com . sap . prd . mobile . ios . mios . xcodeprojreader . ProjectFileTest . load ( ) ) ; "<AssertPlaceHolder>" ; } getBuildConf...
org . junit . Assert . assertEquals ( 0 , configList . getBuildConfigurations ( ) . size ( ) )
assertExecuteForMultipleStatementsSuccessWithDML ( ) { java . sql . Statement statement1 = getStatement ( ) ; java . sql . Statement statement2 = getStatement ( ) ; when ( statement1 . execute ( org . apache . shardingsphere . shardingjdbc . executor . StatementExecutorTest . DML_SQL ) ) . thenReturn ( false ) ; when (...
org . junit . Assert . assertFalse ( actual . execute ( ) )